Browse Source

Remove -Wno-writable-strings

gingerBill 5 years ago
parent
commit
b09297da81
3 changed files with 3 additions and 3 deletions
  1. 1 1
      Makefile
  2. 1 1
      build.bat
  3. 1 1
      build.sh

+ 1 - 1
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

+ 1 - 1
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

+ 1 - 1
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"