Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NUnpo-00085A-W4 for mharc-grub-devel@gnu.org; Tue, 12 Jan 2010 15:59:29 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NUnpn-000825-8n for grub-devel@gnu.org; Tue, 12 Jan 2010 15:59:27 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NUnpi-0007sI-D0 for grub-devel@gnu.org; Tue, 12 Jan 2010 15:59:26 -0500 Received: from [199.232.76.173] (port=58381 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUnpi-0007rs-4c for grub-devel@gnu.org; Tue, 12 Jan 2010 15:59:22 -0500 Received: from mail-fx0-f228.google.com ([209.85.220.228]:36162) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NUnph-0003FH-Kt for grub-devel@gnu.org; Tue, 12 Jan 2010 15:59:21 -0500 Received: by fxm28 with SMTP id 28so14337717fxm.26 for ; Tue, 12 Jan 2010 12:59:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=e2MEswVmoKgzVg2koaOMQTc2JLAkOmD+GsyF1rvvrxA=; b=Kxt1SV06IIK7jAS1G4VuntXOm61WTMODev06vDqRZtfifRncEnDBilmBzChpYR9Wtf wNYUJADn89oTuA1ay1yWYIRU+UZi/q7cL3SVgTkrwmgCryusp61qjYeI0ObcuLRFUgvK vaHksmens86M+d4qrST7GbtZ3RIL86SaPdIoc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=WODgz/B9o4vHajPSOErsnSWupoHO7obxxOnzDfs1AuHqqupvEGoCz9CZNJBtSnqxMp 2e+qRcG7hTEQXJYfkXtUyjU3pSise5Li60f7OkOu3U7hSBTgqiOsXtijsOayLsxW98K4 4iTSs5H6s9UEOvK5X8oYzWG2EycbdiDbZCV4o= MIME-Version: 1.0 Received: by 10.239.145.149 with SMTP id s21mr1667949hba.141.1263329956922; Tue, 12 Jan 2010 12:59:16 -0800 (PST) In-Reply-To: <4B4CCE14.7060706@gmail.com> References: <4B4CC4EF.5000104@gmail.com> <2e59e6971001121109t5314e819t30ee70bb509254e2@mail.gmail.com> <4B4CCE14.7060706@gmail.com> Date: Tue, 12 Jan 2010 14:59:16 -0600 Message-ID: <2e59e6971001121259w18ebb724i52ed5ad6a791d00a@mail.gmail.com> From: "richardvoigt@gmail.com" To: The development of GNU GRUB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Build error: "ENABLE_NLS" is not defined X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jan 2010 20:59:27 -0000 2010/1/12 Gr=C3=A9goire Sutre : > richardvoigt@gmail.com wrote: > >> This fix breaks when ENABLE_NLS is defined as 0. > > AFAICS, in the implementation of AM_GNU_GETTEXT, ENABLE_NLS is either not > defined or set to 1. > > But I agree that my proposed fix is too dependent on the implementation o= f > AM_GNU_GETTEXT, which may change. > > Another option would be to replace #if ENABLE_NLS by #if defined(ENABLE_N= LS) > && ENABLE_NLS. I know the C compiler short-circuits &&, if the preprocessor does also then this looks like the best solution. If not, then nested #if. > >> This gcc bug is blocking a better solution: >> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D38105 > > I didn't know that this was a gcc bug. =C2=A0It felt like a normal behavi= or to me > to get an error with both -Wundef and -Werror in that case. =C2=A0From th= e gcc > man page: > > =C2=A0-Werror > =C2=A0 =C2=A0 Make all warnings into errors. > > =C2=A0-Wundef > =C2=A0 =C2=A0 Warn if an undefined identifier is evaluated in an #if dire= ctive. And -Wno-error=3Dundef is supposed to change the severity of that class of warning back to non-fatal. But it currently doesn't. > > > Gr=C3=A9goire > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel >