From b09297da8178b89ebde043c99a11d9137f5bfd2a Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 4 Jan 2020 10:59:12 +0000 Subject: [PATCH] Remove -Wno-writable-strings --- Makefile | 2 +- build.bat | 2 +- build.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 7129c41e1..bc506ac62 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -DISABLED_WARNINGS=-Wno-switch -Wno-pointer-sign -Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare -Wno-macro-redefined -Wno-writable-strings +DISABLED_WARNINGS=-Wno-switch -Wno-pointer-sign -Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare -Wno-macro-redefined LDFLAGS=-pthread -ldl -lm -lstdc++ CFLAGS=-std=c++11 CC=clang diff --git a/build.bat b/build.bat index ec47e4054..013a199a7 100644 --- a/build.bat +++ b/build.bat @@ -12,7 +12,7 @@ if "%1" == "1" ( set release_mode=0 ) -set compiler_flags= -nologo -Oi -TP -fp:precise -Gm- -MP -FC -GS- -EHsc- -GR- +set compiler_flags= -nologo -Oi -TP -fp:precise -Gm- -MP -FC -EHsc- -GR- -GF if %release_mode% EQU 0 ( rem Debug set compiler_flags=%compiler_flags% -Od -MDd -Z7 diff --git a/build.sh b/build.sh index 1ce187e88..cbd4ba618 100755 --- a/build.sh +++ b/build.sh @@ -2,7 +2,7 @@ release_mode=$1 -warnings_to_disable="-std=c++11 -Wno-switch -Wno-pointer-sign -Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare -Wno-macro-redefined -Wno-writable-strings" +warnings_to_disable="-std=c++11 -Wno-switch -Wno-pointer-sign -Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare -Wno-macro-redefined" libraries="-pthread -ldl -lm -lstdc++" other_args="" compiler="clang"