Downgrade unrecognized -W<warning> from an error to a warning
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
Nice idea, thanks. Proposed implementation at #554 .
Works nicely in my tests and helps a lot with various 3rd party build systems. Would be great to merge when ready. Thank you!