Use the -Wshift-overflow=2 compiler option if available.
Gerald Pfeifer
gerald at pfeifer.com
Sat Oct 24 16:51:01 CDT 2015
By now, most of my patches to address cases of potential shift
overflow have been applied, and I have been submitting the rest.
Signed-off-by: Gerald Pfeifer <gerald at pfeifer.com>
---
configure.ac | 1 +
1 file changed, 1 insertion(+)
diff --git a/configure.ac b/configure.ac
index bfcf319..3575a31 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1828,6 +1828,7 @@ then
WINE_TRY_CFLAGS([-Wdeclaration-after-statement])
WINE_TRY_CFLAGS([-Wempty-body])
WINE_TRY_CFLAGS([-Wignored-qualifiers])
+ WINE_TRY_CFLAGS([-Wshift-overflow=2])
WINE_TRY_CFLAGS([-Wstrict-prototypes])
WINE_TRY_CFLAGS([-Wtype-limits])
WINE_TRY_CFLAGS([-Wunused-but-set-parameter])
--
2.6.1
More information about the wine-patches
mailing list