mirror of
https://github.com/mupen64plus-ae/mupen64plus-rsp-cxd4.git
synced 2024-11-26 23:10:25 +00:00
Compile with -Wstrict-overflow=1, not =5.
When disabling ARCH_MIN_SSE2, the ANSI code path triggers several untraceable warnings that are nonsense (like integer union members giving warnings about pointer overflow). GCC purportedly has raised false positives with the overflow detection setting this high. Since it cannot give reliable reports in the ANSI code path for this RSP plugin (which does very little with what are actually pointers anyway in the vector unit), the level has been lowered down to 1.
This commit is contained in:
parent
0e27d9fd78
commit
b2fd3d356a
4
make.sh
4
make.sh
@ -28,7 +28,7 @@ FLAGS_x86="\
|
||||
-pedantic \
|
||||
-Wall -Wshadow -Wredundant-decls -Wextra -Wcast-align -Wcast-qual \
|
||||
-Wdisabled-optimization -Wformat=2 -Winit-self -Wlogical-op
|
||||
-Wmissing-include-dirs -Wstrict-overflow=5 -Wundef -Wno-unused \
|
||||
-Wmissing-include-dirs -Wstrict-overflow=1 -Wundef -Wno-unused \
|
||||
-Wno-variadic-macros -Wno-parentheses -fdiagnostics-show-option"
|
||||
else
|
||||
FLAGS_x86="\
|
||||
@ -41,7 +41,7 @@ FLAGS_x86="\
|
||||
-pedantic \
|
||||
-Wall -Wshadow -Wredundant-decls -Wextra -Wcast-align -Wcast-qual \
|
||||
-Wdisabled-optimization -Wformat=2 -Winit-self -Wlogical-op
|
||||
-Wmissing-include-dirs -Wstrict-overflow=5 -Wundef -Wno-unused \
|
||||
-Wmissing-include-dirs -Wstrict-overflow=1 -Wundef -Wno-unused \
|
||||
-Wno-variadic-macros -Wno-parentheses -fdiagnostics-show-option"
|
||||
fi
|
||||
C_FLAGS=$FLAGS_x86 # default since Intel SIMD was the most tested
|
||||
|
Loading…
Reference in New Issue
Block a user