This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: Don't use -Wuninitialized if CFLAGS omits -O
- From: Andreas Schwab <schwab at suse dot de>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: Jim Blandy <jimb at redhat dot com>, gdb-patches at sources dot redhat dot com
- Date: Sat, 12 Mar 2005 16:05:49 +0100
- Subject: Re: RFA: Don't use -Wuninitialized if CFLAGS omits -O
- References: <vt2is4c77ng.fsf@zenia.home> <20050312090506.GU1156@adacore.com>
Joel Brobecker <brobecker@adacore.com> writes:
>> + # GCC supports -Wuninitialized only with -O or -On, n != 0.
>> + if test x${CFLAGS+set} == xset; then
> ^^
> I think the "==" should be "=", no? That's what "man test" documents.
Yes, "=" is correct, "==" is implemented in some shells (like bash and
ksh) as extension.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."