1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 11:42:21 +00:00

INIT/cc.darwin: suppress another annoying compiler warning

src/cmd/INIT/cc.darwin:
- Since the flags added from Apple's ksh-27.tar.gz Makefile
  explicitly redefine a macro, let's disable the warning on
  redefined macros.

(cherry picked from commit 4b21a0abce8406e82d3afa4a68ef6bb56d98c797)
This commit is contained in:
Martijn Dekker 2020-05-20 15:49:10 +01:00
parent c9ccee86bb
commit 2887378ae3

View file

@ -45,8 +45,8 @@ init) echo "cc: arguments expected" >&2
;;
cpp) $CC -E "$@"
;;
cc) $CC -DSHOPT_SPAWN=0 -D_ast_int8_t=int64_t -D_lib_memccpy \
-Wno-unused-value -Wno-parentheses "$@"
cc) $CC -DSHOPT_SPAWN=1 -D_ast_int8_t=int64_t -D_lib_memccpy \
-Wno-unused-value -Wno-parentheses -Wno-macro-redefined "$@"
;;
dll) $CC -Wl,-flat_namespace -dynamiclib -undefined dynamic_lookup "$@"
;;