mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Revert "Pass -Wno-misleading-indentation to silence spurious warnings."
Clang 4.0 doesn't like this and I'm too lazy to implement per compiler CFLAGS.
This commit is contained in:
parent
86fd714788
commit
7ca4e2ea5d
2 changed files with 4 additions and 5 deletions
|
@ -31,7 +31,7 @@ list(APPEND CMAKE_PREFIX_PATH /usr/local)
|
|||
# -Wall -> More warnings
|
||||
# -fno-strict-aliasing -> Quake 2 is far away from strict aliasing
|
||||
# -fwrapv -> Make signed integer overflows defined
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -Wall -Wno-misleading-indentation -fno-strict-aliasing -fwrapv")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -Wall -fno-strict-aliasing -fwrapv")
|
||||
|
||||
# Use -O2 as maximum optimization level. -O3 has it's problems with yquake2.
|
||||
string(REPLACE "-O3" "-O2" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
|
||||
|
|
7
Makefile
7
Makefile
|
@ -157,12 +157,11 @@ endif
|
|||
# generated if building universal binaries on OSX)
|
||||
ifeq ($(YQ2_OSTYPE), Darwin)
|
||||
CFLAGS := -O2 -fno-strict-aliasing -fomit-frame-pointer \
|
||||
-Wall -Wno-misleading-indentation -pipe -g -fwrapv
|
||||
-Wall -pipe -g -fwrapv
|
||||
CFLAGS += $(OSX_ARCH)
|
||||
else
|
||||
CFLAGS := -std=gnu99 -O2 -fno-strict-aliasing -Wall \
|
||||
-Wno-misleading-indentation -pipe -g -ggdb \
|
||||
-MMD -fwrapv
|
||||
CFLAGS := -std=gnu99 -O2 -fno-strict-aliasing \
|
||||
-Wall -pipe -g -ggdb -MMD -fwrapv
|
||||
endif
|
||||
|
||||
# ----------
|
||||
|
|
Loading…
Reference in a new issue