This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: init_priority fix for services/memalloc


On Wed, 2004-09-29 at 10:41, Andrew Lunn wrote:
> On Wed, Sep 29, 2004 at 09:25:12AM +0200, ?yvind Harboe wrote:
> > 
> > I did some more homework.
> > 
> > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14161
> > 
> > I haven't studied the GCC options carefully, but surely we could make
> > the warning below an error.
> > 
> > If so, then a way forward would be to add this option to CFLAGS and
> > commit fixes as we find them.
> > 
> > test.cxx:10: warning: attributes after parenthesized initializer ignored
> > test.cxx:11: warning: attributes after parenthesized initializer ignored
> > test.cxx:12: warning: attributes after parenthesized initializer ignored
> 
> I think it said somewhere that this might only be in 3.3.x version
> because it messes up the new parse for 3.4.x.
> 
> Do you realy see these warnings with 3.4.x? Do a 
> 
> make -s 
> 
> to make them stand out.

Rejoice! GCC 3.4.2 has the warning!

/cygdrive/c/cdtworkspace/ecos-repository/ecos/packages/io/fileio/current/src/select.cxx:100: warning: attributes after parenthesized initializer ignored

-Werror would turn this and all other warnings into errors. Turning all
warnings into errors is a bit problematic since it would require another
problem to be fixed. eCos does not distinguish between C only, C++ only
and C&C++ options, hence there are lots of warnings like:

cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
C/ObjC but not for C++



> 
>         Andrew
-- 
Øyvind Harboe
http://www.zylin.com



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]