Skip to content

[CI] Find a way to avoid certain CLI flags not supported by compilers #1352

@jimklimov

Description

@jimklimov

A few options probed in m4/nut_compiler_family.m4 are not really supported by some versions of compilers that the NUT CI build farm uses (whether by front-ends like gcc or back-ends like cc1) and are reported as problematic during "real builds". During the test operations done in the m4 script however, they seem fine and are accepted - only to begin complaining when e.g. C++11 support is probed just after.

They seem to also be reported as errors when -Werror mode is used (so warnings are fatal) but were not see to cause actual build failures, just confusion about why they failed (and noise in the log or terminal).

Seen with -Wno-reserved-identifier and -Wno-unknown-warning-option on gcc-4.x.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIEntries related to continuous integration infrastructure (here CI = tools + scripts + recipes)portabilityWe want NUT to build and run everywhere possible

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions