[ovs-dev] [PATCH] clang: Use -Wthread-safety warning flag.

Alex Wang alexw at nicira.com
Tue Jul 23 22:39:17 UTC 2013


The '-Wthread-safety' warning flag of 'clang' compiler can be useful
to the compilation of multi-threading code. This commit enables this
flag whenever 'CC=clang'.

Signed-off-by: Alex Wang <alexw at nicira.com>
---
 configure.ac |    1 +
 1 file changed, 1 insertion(+)

diff --git a/configure.ac b/configure.ac
index 170a852..d147e25 100644
--- a/configure.ac
+++ b/configure.ac
@@ -103,6 +103,7 @@ OVS_ENABLE_OPTION([-Wstrict-prototypes])
 OVS_ENABLE_OPTION([-Wold-style-definition])
 OVS_ENABLE_OPTION([-Wmissing-prototypes])
 OVS_ENABLE_OPTION([-Wmissing-field-initializers])
+OVS_ENABLE_OPTION([-Wthread-safety])
 OVS_CONDITIONAL_CC_OPTION([-Wno-unused], [HAVE_WNO_UNUSED])
 OVS_CONDITIONAL_CC_OPTION([-Wno-unused-parameter], [HAVE_WNO_UNUSED_PARAMETER])
 OVS_ENABLE_WERROR
-- 
1.7.9.5




More information about the dev mailing list