Skip to content
Snippets Groups Projects
Unverified Commit 80475ada authored by Hanicef's avatar Hanicef
Browse files

Always apply -fwrapv on builds

parent 6d650728
No related branches found
No related tags found
2 merge requests!2355fix newer versions of mixerx,!2195Pass -fwrapv to GCC compilation flags
...@@ -253,6 +253,7 @@ target_compile_options(SRB2SDL2 PRIVATE ...@@ -253,6 +253,7 @@ target_compile_options(SRB2SDL2 PRIVATE
-Winline -Winline
-Wformat-y2k -Wformat-y2k
-Wformat-security -Wformat-security
-fwrapv
$<$<VERSION_LESS:$<C_COMPILER_VERSION>,2.9.5>: $<$<VERSION_LESS:$<C_COMPILER_VERSION>,2.9.5>:
-Wno-div-by-zero -Wno-div-by-zero
...@@ -260,10 +261,6 @@ target_compile_options(SRB2SDL2 PRIVATE ...@@ -260,10 +261,6 @@ target_compile_options(SRB2SDL2 PRIVATE
-Wdisabled-optimization -Wdisabled-optimization
> >
$<$<VERSION_GREATER_EQUAL:$<C_COMPILER_VERSION>,3.4.0>:
-fwrapv
>
$<$<VERSION_GREATER_EQUAL:$<C_COMPILER_VERSION>,4.0.0>: $<$<VERSION_GREATER_EQUAL:$<C_COMPILER_VERSION>,4.0.0>:
-Wold-style-definition -Wold-style-definition
-Wmissing-field-initializers -Wmissing-field-initializers
...@@ -326,6 +323,7 @@ target_compile_options(SRB2SDL2 PRIVATE ...@@ -326,6 +323,7 @@ target_compile_options(SRB2SDL2 PRIVATE
-Wno-error=non-literal-null-conversion -Wno-error=non-literal-null-conversion
-Wno-error=constant-conversion -Wno-error=constant-conversion
-Wno-error=unused-but-set-variable -Wno-error=unused-but-set-variable
-fwrapv
> >
# C, MSVC # C, MSVC
......
...@@ -164,7 +164,7 @@ sources:= ...@@ -164,7 +164,7 @@ sources:=
makedir:=../make makedir:=../make
# -DCOMPVERSION: flag to use comptime.h # -DCOMPVERSION: flag to use comptime.h
opts:=-DCOMPVERSION -g opts:=-DCOMPVERSION -g -fwrapv
libs:= libs:=
# This is a list of variables names, of which if defined, # This is a list of variables names, of which if defined,
......
...@@ -65,8 +65,7 @@ gcc_versions:=\ ...@@ -65,8 +65,7 @@ gcc_versions:=\
75 74 73 72 71 70\ 75 74 73 72 71 70\
64 63 62 61 60\ 64 63 62 61 60\
55 54 53 52 51 50\ 55 54 53 52 51 50\
49 48 47 46 45 44 43 42 41 40\ 49 48 47 46 45 44 43 42 41 40
34
latest_gcc_version:=13.2 latest_gcc_version:=13.2
......
...@@ -160,10 +160,6 @@ opts+=-O0 ...@@ -160,10 +160,6 @@ opts+=-O0
endif endif
endif endif
ifdef GCC34
opts+=-fwrapv
endif
ifdef VALGRIND ifdef VALGRIND
ifdef GCC46 ifdef GCC46
WFLAGS+=-Wno-error=unused-but-set-variable WFLAGS+=-Wno-error=unused-but-set-variable
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment