|
From: <sv...@va...> - 2014-09-05 18:30:16
|
Author: florian
Date: Fri Sep 5 18:30:05 2014
New Revision: 14467
Log:
Fix most clang warnings.
Modified:
trunk/configure.ac
trunk/drd/tests/Makefile.am
trunk/drd/tests/tsan_unittest.cpp
trunk/memcheck/tests/Makefile.am
Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Fri Sep 5 18:30:05 2014
@@ -1773,6 +1773,8 @@
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 ?
Modified: trunk/drd/tests/Makefile.am
==============================================================================
--- trunk/drd/tests/Makefile.am (original)
+++ trunk/drd/tests/Makefile.am Fri Sep 5 18:30:05 2014
@@ -468,6 +468,7 @@
endif
annotate_static_SOURCES = annotate_static.cpp
+annotate_static_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_W_NO_UNUSED_FUNCTION@
local_static_SOURCES = local_static.cpp
Modified: trunk/drd/tests/tsan_unittest.cpp
==============================================================================
--- trunk/drd/tests/tsan_unittest.cpp (original)
+++ trunk/drd/tests/tsan_unittest.cpp Fri Sep 5 18:30:05 2014
@@ -7757,8 +7757,8 @@
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;
Modified: trunk/memcheck/tests/Makefile.am
==============================================================================
--- trunk/memcheck/tests/Makefile.am (original)
+++ trunk/memcheck/tests/Makefile.am Fri Sep 5 18:30:05 2014
@@ -422,11 +422,7 @@
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@
|