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


> 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++

That is another issue. I would only use gcc as a check, not a tool to
actually find the problem code. Due to the configurability of eCos
simply builiding it is no gaurantee that the interesting code will
actually get compiled. Using grep is the right way to find possible
problem code and then taking a good look at it to see if it needs
changing.

        Andrew


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