better fix for mac warning

This commit is contained in:
Allen Webster 2017-06-29 19:41:39 -04:00
parent ca5f5bbc3c
commit 1dc1154089
2 changed files with 2 additions and 3 deletions

View File

@ -11,7 +11,7 @@ os=$("./detect_os.sh")
if [[ "$os" == "linux" ]]; then if [[ "$os" == "linux" ]]; then
WARNINGS="-Wno-write-strings -Wno-comment " WARNINGS="-Wno-write-strings -Wno-comment "
elif [[ "$os" == "mac" ]]; then elif [[ "$os" == "mac" ]]; then
WARNINGS="-Wno-comment -Wno-logical-op-parentheses -Wno-null-dereference -Wno-switch" WARNINGS="-Wno-write-strings -Wno-comment -Wno-logical-op-parentheses -Wno-null-dereference -Wno-switch"
fi fi
FLAGS="-D_GNU_SOURCE -fPIC -fpermissive $BUILD_MODE" FLAGS="-D_GNU_SOURCE -fPIC -fpermissive $BUILD_MODE"

View File

@ -260,8 +260,7 @@ build_cl(u32 flags, char *code_path, char *code_file, char *out_path, char *out_
# define GCC_OPTS \ # define GCC_OPTS \
"-Wno-write-strings -Wno-deprecated-declarations " \ "-Wno-write-strings -Wno-deprecated-declarations " \
"-Wno-comment -Wno-switch -Wno-null-dereference " \ "-Wno-comment -Wno-switch -Wno-null-dereference "
"-Wno-c++11-compat-deprecated-writable-strings "
#define GCC_LIBS \ #define GCC_LIBS \
"-framework Cocoa -framework QuartzCore " \ "-framework Cocoa -framework QuartzCore " \