]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix most clang warnings.
authorFlorian Krohm <florian@eich-krohm.de>
Fri, 5 Sep 2014 18:30:05 +0000 (18:30 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Fri, 5 Sep 2014 18:30:05 +0000 (18:30 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14467

configure.ac
drd/tests/Makefile.am
drd/tests/tsan_unittest.cpp
memcheck/tests/Makefile.am

index 05848733e441c3b8d64ee05d4af79e6859adc8e1..878d37d75c73ec25b140b656546532d60f3d632f 100644 (file)
@@ -1773,6 +1773,8 @@ AC_GCC_WARNING_SUBST_NO([tautological-compare], [FLAG_W_NO_TAUTOLOGICAL_COMPARE]
 AC_GCC_WARNING_SUBST_NO([nonnull], [FLAG_W_NO_NONNULL])
 AC_GCC_WARNING_SUBST_NO([overflow], [FLAG_W_NO_OVERFLOW])
 AC_GCC_WARNING_SUBST_NO([uninitialized], [FLAG_W_NO_UNINITIALIZED])
+AC_GCC_WARNING_SUBST_NO([unused-function], [FLAG_W_NO_UNUSED_FUNCTION])
+AC_GCC_WARNING_SUBST_NO([static-local-in-inline], [FLAG_W_NO_STATIC_LOCAL_IN_INLINE])
 
 
 # does this compiler support -Wextra or the older -W ?
index 45d3a54e31e38c1c7e05ea75cfedbf7e351f5e34..eb5b1ffb13c40ac0489ec2a336701181e16fea52 100644 (file)
@@ -468,6 +468,7 @@ annotate_smart_pointer_SOURCES = annotate_smart_pointer.cpp
 endif
 
 annotate_static_SOURCES     = annotate_static.cpp
+annotate_static_CXXFLAGS    = $(AM_CXXFLAGS) @FLAG_W_NO_UNUSED_FUNCTION@
 
 local_static_SOURCES        = local_static.cpp
 
index 956a17e627e0715d1528eca3f9ba8506ec694f87..57bb3107cc2f41014d2e8171cd735f6fc26dde86 100644 (file)
@@ -7757,8 +7757,8 @@ namespace test513 {
 const int N_THREADS = 2,
           HG_CACHELINE_SIZE  = 1 << 6,
           ARRAY_SIZE = HG_CACHELINE_SIZE * 512,
-          MUTEX_ID_BITS = 8,
-          MUTEX_ID_MASK = (1 << MUTEX_ID_BITS) - 1;
+          MUTEX_ID_BITS = 8;
+//          MUTEX_ID_MASK = (1 << MUTEX_ID_BITS) - 1;
 
 // Each thread has its own cacheline and tackles with it intensively
 const int ITERATIONS = 1024;
index 94242fedb868b2f1e587a3b3b2d61e36a71dfa48..f82b5e48eb9085fec70d60d64c1651f81ab95dab 100644 (file)
@@ -422,11 +422,7 @@ fprw_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
 
 inits_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
 
-if COMPILER_IS_CLANG
-inlinfo_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ -Wno-static-local-in-inline
-else
-inlinfo_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
-endif
+inlinfo_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ @FLAG_W_NO_STATIC_LOCAL_IN_INLINE@
 
 inltemplate_SOURCES = inltemplate.cpp
 inltemplate_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_W_NO_UNINITIALIZED@