mirror of https://git.ffmpeg.org/ffmpeg.git
Merge commit '2bbb5abd877104fa9bc342c521bb49bc1aad50ce'
* commit '2bbb5abd877104fa9bc342c521bb49bc1aad50ce': build: Map -Wall compiler flag to -W3 for MSVC and -Wextra to -W4 Merged-by: Clément Bœsch <u@pkh.me>
This commit is contained in:
commit
068d91885f
|
@ -3861,6 +3861,7 @@ msvc_common_flags(){
|
||||||
# specific filters, they must be specified here as well or else the
|
# specific filters, they must be specified here as well or else the
|
||||||
# generic catch all at the bottom will print the original flag.
|
# generic catch all at the bottom will print the original flag.
|
||||||
-Wall) ;;
|
-Wall) ;;
|
||||||
|
-Wextra) ;;
|
||||||
-std=c99) ;;
|
-std=c99) ;;
|
||||||
# Common flags
|
# Common flags
|
||||||
-fomit-frame-pointer) ;;
|
-fomit-frame-pointer) ;;
|
||||||
|
@ -3886,7 +3887,9 @@ msvc_flags(){
|
||||||
msvc_common_flags "$@"
|
msvc_common_flags "$@"
|
||||||
for flag; do
|
for flag; do
|
||||||
case $flag in
|
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 \
|
-wd4146 -wd4057 -wd4204 -wd4706 -wd4305 \
|
||||||
-wd4152 -wd4324 -we4013 -wd4100 -wd4214 \
|
-wd4152 -wd4324 -we4013 -wd4100 -wd4214 \
|
||||||
-wd4307 \
|
-wd4307 \
|
||||||
|
|
Loading…
Reference in New Issue