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: Joel Brobecker <brobecker at adacore dot com>
- To: Jim Blandy <jimb at redhat dot com>, gdb-patches at sources dot redhat dot com
- Date: Sat, 12 Mar 2005 12:15:28 -0800
- Subject: Re: RFA: Don't use -Wuninitialized if CFLAGS omits -O
- References: <vt2is4c77ng.fsf@zenia.home> <20050312090506.GU1156@adacore.com> <20050312153235.GA11899@nevyn.them.org>
> > I think there is a slight problem that broke the build with non-GNU
> > bourne shells. We have a build failure on our solaris 2.8 machine,
> > for instance. Here is what I think the problem is:
> >
> > > + # 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.
> > But I've never been a shell guru...
>
> Yes, that's right. Would you mind fixing this?
Sure, wildo later today.
--
Joel