-W[no-]error...: features by shrinkage
commit4b2c6cf3a48c1bdfe07faa8c3e1c8148f861aff5
authorgrischka <grischka>
Sat, 31 Jul 2021 18:44:51 +0000 (31 20:44 +0200)
committergrischka <grischka>
Sat, 31 Jul 2021 19:45:33 +0000 (31 21:45 +0200)
treecd40e070f20f7ed57bde10eb1cc6d68254a8b7df
parent931a146591ecc5e8bb45b5518a39e7fee92924f0
-W[no-]error...: features by shrinkage

136 insertions(+), 226 deletions(-), less 90 lines (except tests)
only one set_flag() function required
* can now turn off specific errors: -Werror -Wno-error=option
* new interface: tcc_warning_c(warn_option)("format", args...);
* new warning: -Wdiscarded-qualifiers (on by default)
* new variable 'warn_all' for conditional warnings with -Wall
see also the tests
libtcc.c
tcc-doc.texi
tcc.c
tcc.h
tccasm.c
tccgen.c
tccpp.c
tests/tests2/60_errors_and_warnings.c
tests/tests2/60_errors_and_warnings.expect