mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Move the -Wtraditional warning from the global cpp flags to when the -p
(portability warnings) switch is used. Add -Wno-system-headers after it so that we dont get 500 screenfulls of warnings about #elif in /usr/include. I'm not entirely happy with this. Maybe cdefs.h shouldn't use #elif and instead nest #else clauses?
This commit is contained in:
parent
02f474d6ba
commit
017ea7dbc2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121528
@ -351,8 +351,6 @@ main(int argc, char *argv[])
|
|||||||
|
|
||||||
appdef(&cflags, "lint");
|
appdef(&cflags, "lint");
|
||||||
|
|
||||||
appcstrg(&lcflags, "-Wtraditional");
|
|
||||||
|
|
||||||
appcstrg(&deflibs, "c");
|
appcstrg(&deflibs, "c");
|
||||||
|
|
||||||
if (signal(SIGHUP, terminate) == SIG_IGN)
|
if (signal(SIGHUP, terminate) == SIG_IGN)
|
||||||
@ -404,6 +402,7 @@ main(int argc, char *argv[])
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'p':
|
case 'p':
|
||||||
|
appcstrg(&lcflags, "-Wtraditional -Wno-system-headers");
|
||||||
appcstrg(&l1flags, "-p");
|
appcstrg(&l1flags, "-p");
|
||||||
appcstrg(&l2flags, "-p");
|
appcstrg(&l2flags, "-p");
|
||||||
if (*deflibs != NULL) {
|
if (*deflibs != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user