Skip to content
Snippets Groups Projects
Commit 0bde38fc authored by Bernd Flemisch's avatar Bernd Flemisch
Browse files

valgrind: avoid defining static_assert as a macro if clang is used. See FS#...

valgrind: avoid defining static_assert as a macro if clang is used. See FS# 140. Reviewed by Christoph.

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@8996 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent e00384e9
No related merge requests found
......@@ -26,6 +26,7 @@
#ifndef DUMUX_VALGRIND_HH
#define DUMUX_VALGRIND_HH
#ifndef __clang__
#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
// do not do static_asserts for gcc < 4.5 (semantics changed, so old
// GCCs will complain when using static_assert)
......@@ -38,6 +39,7 @@
# undef HAVE_VALGRIND
# endif
#endif // GCC < 4.5
#endif // __clang__
#ifndef HAVE_VALGRIND
// make sure that the HAVE_VALGRIND macro is always defined
......
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