Makefile: WARNINGS: add -Wsync-nand
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 29 May 2012 09:51:29 +0000 (11:51 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 29 May 2012 13:19:31 +0000 (15:19 +0200)
-Wsync-nand (C and C++ only)
  Warn when "__sync_fetch_and_nand" and "__sync_nand_and_fetch"
  built-in functions are used.  These functions changed semantics
  in GCC 4.4.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Makefile.inc

index 4d4e35e..d72fdf4 100644 (file)
@@ -94,6 +94,7 @@ WARNINGS +=   -Wformat-security
 WARNINGS +=    -Wformat-y2k
 WARNINGS +=    -Winit-self
 WARNINGS +=    -Wswitch-default
+WARNINGS +=    -Wsync-nand
 # the following 2 do not work yet and need more work on it
 #WARNINGS +=   -Wconversion
 #WARNINGS +=   -Wredundant-decls