summaryrefslogtreecommitdiff
path: root/makefiles/gmake/compiler.mk
diff options
context:
space:
mode:
Diffstat (limited to 'makefiles/gmake/compiler.mk')
-rw-r--r--makefiles/gmake/compiler.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/makefiles/gmake/compiler.mk b/makefiles/gmake/compiler.mk
index 85414b0..8e9c978 100644
--- a/makefiles/gmake/compiler.mk
+++ b/makefiles/gmake/compiler.mk
@@ -27,7 +27,7 @@ GCC_MINOR_VERSION ?= $(shell $(TOPDIR)/makefiles/gmake/guess_env --gcc-minor-ver
# -Wunreachable-code: doesn't work
# -Wno-div-by-zero: we get NaN and friend over macros, so need for funny tricks :-)
# -Wstrict-overflow=5 is relatively new, later maybe
-# -fstack-protector or -fstack-protector-all: should be used, but U
+# -fstack-protector or -fstack-protector-all: should be used, but I
# have currently big problems to get it around compiler gcc and -lssl
# probing! FIXME later
# -fstack-protector-all: does something funny to the shared objects..
@@ -35,6 +35,8 @@ GCC_MINOR_VERSION ?= $(shell $(TOPDIR)/makefiles/gmake/guess_env --gcc-minor-ver
# everything implied by -Wall is not explicitly specified (gcc 4.2.3)
# TODO: reenable -O2
# -Waggregate-return: is for K&R code and mostly useless nowadays
+# TODO: snprintf Solaris 8 and cygwin croaks on -Wfloat-equal, compilers are
+# too old for diagnostic pragmas, drop -Wfloat-equal for now
# compilation flags and compilers
COMMON_COMPILE_FLAGS = \
@@ -43,7 +45,7 @@ COMMON_COMPILE_FLAGS = \
-pedantic -Wall -Werror \
-Wunused -Wno-import \
-Wformat -Wformat-y2k -Wformat-nonliteral -Wformat-security -Wformat-y2k \
- -Wswitch-enum -Wunknown-pragmas -Wfloat-equal \
+ -Wswitch-enum -Wunknown-pragmas \
-Wundef -Wshadow -Wpointer-arith \
-Wcast-qual -Wcast-align \
-Wwrite-strings \