better fix for mac warning
This commit is contained in:
parent
ca5f5bbc3c
commit
1dc1154089
2
build.sh
2
build.sh
|
@ -11,7 +11,7 @@ os=$("./detect_os.sh")
|
|||
if [[ "$os" == "linux" ]]; then
|
||||
WARNINGS="-Wno-write-strings -Wno-comment "
|
||||
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
|
||||
|
||||
FLAGS="-D_GNU_SOURCE -fPIC -fpermissive $BUILD_MODE"
|
||||
|
|
|
@ -260,8 +260,7 @@ build_cl(u32 flags, char *code_path, char *code_file, char *out_path, char *out_
|
|||
|
||||
# define GCC_OPTS \
|
||||
"-Wno-write-strings -Wno-deprecated-declarations " \
|
||||
"-Wno-comment -Wno-switch -Wno-null-dereference " \
|
||||
"-Wno-c++11-compat-deprecated-writable-strings "
|
||||
"-Wno-comment -Wno-switch -Wno-null-dereference "
|
||||
|
||||
#define GCC_LIBS \
|
||||
"-framework Cocoa -framework QuartzCore " \
|
||||
|
|
Loading…
Reference in New Issue