Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/xlint/xlint/xlint.c
Show First 20 Lines • Show All 399 Lines • ▼ Show 20 Lines | case 'i': | ||||
iflag = 1; | iflag = 1; | ||||
break; | break; | ||||
case 'n': | case 'n': | ||||
freelst(&deflibs); | freelst(&deflibs); | ||||
break; | break; | ||||
case 'p': | case 'p': | ||||
#ifdef __clang__ | |||||
appcstrg(&lcflags, "-Traditional"); | |||||
#else /* gcc */ | |||||
appcstrg(&lcflags, "-Wtraditional"); | appcstrg(&lcflags, "-Wtraditional"); | ||||
#endif | |||||
sbruno: -Wtraditional doesn't appear to be a thing with clang. Maybe gcc supports -Traditional and all… | |||||
appcstrg(&lcflags, "-Wno-system-headers"); | appcstrg(&lcflags, "-Wno-system-headers"); | ||||
appcstrg(&l1flags, "-p"); | appcstrg(&l1flags, "-p"); | ||||
appcstrg(&l2flags, "-p"); | appcstrg(&l2flags, "-p"); | ||||
if (*deflibs != NULL) { | if (*deflibs != NULL) { | ||||
freelst(&deflibs); | freelst(&deflibs); | ||||
appcstrg(&deflibs, "c"); | appcstrg(&deflibs, "c"); | ||||
} | } | ||||
break; | break; | ||||
▲ Show 20 Lines • Show All 467 Lines • Show Last 20 Lines |
-Wtraditional doesn't appear to be a thing with clang. Maybe gcc supports -Traditional and all of this needs to be just changed? But, for now, this works.