[RFC] Ignore source code comments in scripts/check-installed-headers.sh
DJ Delorie
dj@redhat.com
Wed Jan 16 23:29:00 GMT 2019
Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> writes:
> With -fpreprocessed, we can still check for that:
>
> :: test.h
> ::::
> *** Obsolete types detected:
> ./test.h:#define ulong unsigned long
> ./test.h:ulong x;
I just tested this (gcc 4 and 7), and the #define didn't survive the
trip...
$ cat foo.c
#define ulong unsigned long
ulong x; /* don't use ulong */
$ gcc -E -fpreprocessed foo.c
# 3 "foo.c"
ulong x;
More information about the Libc-alpha
mailing list