diff --git a/usr.bin/xlint/xlint/xlint.c b/usr.bin/xlint/xlint/xlint.c index 257f493d0895..9dc8df612912 100644 --- a/usr.bin/xlint/xlint/xlint.c +++ b/usr.bin/xlint/xlint/xlint.c @@ -351,8 +351,6 @@ main(int argc, char *argv[]) appdef(&cflags, "lint"); - appcstrg(&lcflags, "-Wtraditional"); - appcstrg(&deflibs, "c"); if (signal(SIGHUP, terminate) == SIG_IGN) @@ -404,6 +402,7 @@ main(int argc, char *argv[]) break; case 'p': + appcstrg(&lcflags, "-Wtraditional -Wno-system-headers"); appcstrg(&l1flags, "-p"); appcstrg(&l2flags, "-p"); if (*deflibs != NULL) {