Re: [AD] Allegro 4.2.0 RC2

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2005-09-03, Michal Molhanec <michal@xxxxxxxxxx> wrote:
> Peter Wang wrote:
> >It's silly to specifically put in -Wstrict-prototypes only to strip it
> >out later.  What kinds of warnings are being produced, and what version
> >of gcc?
> 
> I'm using gcc 3.4.2. As you can see:
> http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gcc/Warning-Options.html#index-Waggregate_002dreturn-253
> this options is for C only (obviously as you cannot have K&R style 
> functions in C++) so it produces warning when compiling Allegro C++ test 
> (cpptest.cpp) that this options is useless. I would be really surprised 
> if it doesn't show under other gcc versions/platforms.

Thanks for the info.  The warning is probably new to 3.4.x.  I don't
like the patch though; we'd have to duplicate it for every platform and
every C-only flag we might introduce.  I think the right fix is to use
CXXFLAGS for C++ rules.

Peter





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/