Skip to content
Snippets Groups Projects
Commit 3251f231 authored by Benjamin Faigle's avatar Benjamin Faigle
Browse files

added return statements for bool functions to prevent annoying compiler warnings

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@6187 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 2dfcba1b
No related branches found
No related tags found
No related merge requests found
...@@ -72,6 +72,7 @@ inline bool CheckDefined(const T &value) ...@@ -72,6 +72,7 @@ inline bool CheckDefined(const T &value)
unsigned int tmp = VALGRIND_CHECK_MEM_IS_DEFINED(&value, sizeof(T)); unsigned int tmp = VALGRIND_CHECK_MEM_IS_DEFINED(&value, sizeof(T));
return tmp == 0; return tmp == 0;
#endif #endif
return 0;
} }
template <class T> template <class T>
...@@ -81,6 +82,7 @@ inline bool CheckDefined(const T *value, int size) ...@@ -81,6 +82,7 @@ inline bool CheckDefined(const T *value, int size)
unsigned int tmp = VALGRIND_CHECK_MEM_IS_DEFINED(value, size*sizeof(T)); unsigned int tmp = VALGRIND_CHECK_MEM_IS_DEFINED(value, size*sizeof(T));
return tmp == 0; return tmp == 0;
#endif #endif
return 0;
} }
/*! /*!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment