From 1dc11540895d3e6d04258dd182d39d8b0cbc11ae Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Thu, 29 Jun 2017 19:41:39 -0400 Subject: [PATCH] better fix for mac warning --- build.sh | 2 +- meta/build.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index c24ed470..a1de1de5 100755 --- a/build.sh +++ b/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" diff --git a/meta/build.cpp b/meta/build.cpp index 707d5d3a..53f994a5 100644 --- a/meta/build.cpp +++ b/meta/build.cpp @@ -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 " \