Date: Sat, 30 Aug 2003 13:20:09 -0700 (PDT) From: Larry Rosenman <ler@lerctr.org> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/56206: src/sys/sys/cdefs.h uses PreProcessor variables that aren't defined, causing noisy warnings. Message-ID: <200308302020.h7UKK9K5055148@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/56206; it has been noted by GNATS. From: Larry Rosenman <ler@lerctr.org> To: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: misc/56206: src/sys/sys/cdefs.h uses PreProcessor variables that aren't defined, causing noisy warnings. Date: Sat, 30 Aug 2003 15:09:35 -0500 --On Saturday, August 30, 2003 16:05:27 -0400 Garrett Wollman <wollman@khavrinen.lcs.mit.edu> wrote: > <<On Sat, 30 Aug 2003 14:19:14 -0500 (CDT), Larry Rosenman > <ler@lerctr.org> said: > >> The following patch shuts it up, and is functionally equivalent. > > Actually, the patch is not functionally equivalent: > >> -#if __STDC_VERSION__ < 199901 >> +#if defined(__STDC_VERSION__) && __STDC_VERSION__ < 199901 > > 0 < 199901 and doesn't the #if __STDC_VERSION__ < 199901 have the same effect, except when __STDC_VERSION__ is NOT defined? which is what the compiler was whining about? > > -GAWollman -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 E-Mail: ler@lerctr.org US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308302020.h7UKK9K5055148>