From owner-freebsd-bugs@FreeBSD.ORG Sat Aug 30 13:20:10 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1AF5716A4BF for ; Sat, 30 Aug 2003 13:20:10 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 986F443FAF for ; Sat, 30 Aug 2003 13:20:09 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h7UKK9Up055149 for ; Sat, 30 Aug 2003 13:20:09 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h7UKK9K5055148; Sat, 30 Aug 2003 13:20:09 -0700 (PDT) Date: Sat, 30 Aug 2003 13:20:09 -0700 (PDT) Message-Id: <200308302020.h7UKK9K5055148@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Larry Rosenman Subject: Re: misc/56206: src/sys/sys/cdefs.h uses PreProcessor variables that aren't defined, causing noisy warnings. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Larry Rosenman List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Aug 2003 20:20:10 -0000 The following reply was made to PR misc/56206; it has been noted by GNATS. From: Larry Rosenman To: Garrett Wollman 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 wrote: > < 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