summaryrefslogtreecommitdiff
path: root/generate/unix/Makefile.config
diff options
context:
space:
mode:
Diffstat (limited to 'generate/unix/Makefile.config')
-rw-r--r--generate/unix/Makefile.config23
1 files changed, 14 insertions, 9 deletions
diff --git a/generate/unix/Makefile.config b/generate/unix/Makefile.config
index 390a4643d6a26..3e4ecd2b9de02 100644
--- a/generate/unix/Makefile.config
+++ b/generate/unix/Makefile.config
@@ -26,7 +26,7 @@
# Notes:
# gcc should be version 4 or greater, otherwise some of the options
# used will not be recognized.
-# Optional: Change HOST to an appropriate value (_LINUX, __FreeBSD__, etc.)
+# Optional: Set HOST to an appropriate value (_LINUX, _FreeBSD, _APPLE, _CYGWIN, etc.)
# See include/platform/acenv.h for supported values.
# Note: HOST is not nearly as important for applications as it
# is for the kernel-resident version of ACPICA, and it may
@@ -155,22 +155,27 @@ CWARNINGFLAGS += \
-Waddress\
-Waggregate-return\
-Wchar-subscripts\
- -Wempty-body\
-Wmissing-declarations\
-Wmissing-field-initializers\
-Wnested-externs\
-Wold-style-definition\
+ -Wno-format-nonliteral\
-Wredundant-decls
#
-# Additional gcc 4+ flags
+# Per-host flags and exclusions
#
-ifneq ($(HOST), _APPLE)
-CWARNINGFLAGS += \
- -Wlogical-op\
- -Wmissing-parameter-type\
- -Wold-style-declaration\
- -Wtype-limits
+ifneq ($(HOST), _FreeBSD)
+ CWARNINGFLAGS += \
+ -Wempty-body
+
+ ifneq ($(HOST), _APPLE)
+ CWARNINGFLAGS += \
+ -Wlogical-op\
+ -Wmissing-parameter-type\
+ -Wold-style-declaration\
+ -Wtype-limits
+ endif
endif
#