summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-12-14 20:35:18 +0100
committerDiego Biurrun <diego@biurrun.de>2017-01-26 11:53:02 +0100
commit2bbb5abd877104fa9bc342c521bb49bc1aad50ce (patch)
tree7070ee7e12241762c648793032ef619d2887d72e
parent6151e9128ce2a84a443c82b78f5b5cb364ba2ab4 (diff)
build: Map -Wall compiler flag to -W3 for MSVC and -Wextra to -W4
These are more appropriate warning level equivalents.
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure b/configure
index 04b19211cf..dde78b8657 100755
--- a/configure
+++ b/configure
@@ -3045,6 +3045,7 @@ msvc_common_flags(){
# specific filters, they must be specified here as well or else the
# generic catch all at the bottom will print the original flag.
-Wall) ;;
+ -Wextra) ;;
-std=c99) ;;
# Common flags
-fomit-frame-pointer) ;;
@@ -3068,7 +3069,9 @@ msvc_flags(){
msvc_common_flags "$@"
for flag; do
case $flag in
- -Wall) echo -W4 -wd4244 -wd4127 -wd4018 -wd4389 \
+ -Wall) echo -W3 -wd4018 -wd4146 -wd4244 -wd4305 \
+ -wd4554 ;;
+ -Wextra) echo -W4 -wd4244 -wd4127 -wd4018 -wd4389 \
-wd4146 -wd4057 -wd4204 -wd4706 -wd4305 \
-wd4152 -wd4324 -we4013 -wd4100 -wd4214 \
-wd4273 -wd4554 -wd4701 -wd4703 ;;