This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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: Fix warnings


Roland McGrath <roland@redhat.com> writes:

>> GCC 3.2 and using -Wmissing-prototypes -Wmissing-declarations to find
>> such problems.
>
> Ah, well extra warning options are sometimes not in the makefile for a
> reason.  I don't think the warnings for failing to have declared a
> prototype prior to the prototype definition of a function are really
> useful.  The changes you make to suppress those warnings just give us yet
> more error-prone duplication to wade through and have to fix up with
> duplicate changes forevermore.

>From Makeconfig:

# Extra flags to pass to GCC.
ifeq ($(all-warnings),yes)
+gccwarn := -Wall -Wwrite-strings -Winline -Wstrict-prototypes -Wcast-qual -Wbad-function-cast -Wmissing-noreturn -Wmissing-prototypes -Wmissing-declarations -Wcomment -Wcomments -Wtrigraphs -Wsign-compare -Wfloat-equal -Wmultichar

So, is the goal to get these warnings shut down eventually - or not?

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


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