C-specific compiler parameters (was: Update on Changes/PortingToModernC)

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

 



Florian Weimer wrote:
> I am going to explore a way to land -Werror=implicit-int
> -Werror=implicit-function-declaration among the default compiler flags.
> There's a bit of an issue because the C++ front end warns on
> those flags, so we need another -specs= kludge that is incompatible with
> Clang.

It sounds like those parameters should be added only to CFLAGS, not to
CXXFLAGS.

__global_compiler_flags already contains things that cause warnings
from the Ada and Fortran compilers. The Ada packages get the warning
“'-Werror=' argument '-Werror=format-security' is not valid for Ada”
over and over. It doesn't break any builds but it's annoying noise in
the build logs.

It would be better if __global_compiler_flags would contain only
language-independent parameters, and language-specific parameters were
added in build_cflags and build_cxxflags.

Björn Persson

Attachment: pgpDLe7Ekg9rF.pgp
Description: OpenPGP digital signatur

_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [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