Skip to content

Downgrade unrecognized -W<warning> from an error to a warning #552

@didickman

Description

@didickman

Currently if an unrecognized warning is passed to CompCert, the compiler will error out. Clang will print a warning (they have a -Wunknown-warning-option) and continue compilation. I’d like to request consideration for following the same behavior as clang. This would make it easier to plug CompCert into existing build systems via “env CC=ccomp make” without having to retrofit gcc/clang build systems very much. To illustrate the difference in behavior, compare:

cc -Wunrecognized

vs.

ccomp -Wunrecognized

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions