Re: addition of -Wall to default flags (redhat-rpm-config-8.0.38-1)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Enrico Scholz wrote:

> | $ gcc -ldl -Wall -pedantic -W -Werror -std=c99 dlsym.c

Nobody suggested using -pedantic, certainly I didn't.  That's a
completely useless option and I really would like for it to be removed.
 Just like -ansi.


> Or, I maintain a library which provides some deprecated functions and
> gives out warnings at link-time when they are used. The same project has
> some legacy tools (used by some people) which are triggering exactly
> these warnings. Enforcing '-Werror' would make it either impossible to
> mark obsolete functions (bad for developers), or to build legacy tools
> (bad for some users).

First of all, warnings by the linker are not covered by -Werror.
Second, there are -Wno-* parameters which can and should be added after
the -Wall to avoid some warnings _for specific files_.  It's just a
matter of setting the Makefiles up to make this easily possible.  The
elfutils makefiles do just that.

-- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
http://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux