nsxiv.woodpeckerCFLAGS
| 1 | # vanilla flags |
| 2 | -std=c99 -Wall -pedantic |
| 3 | # optimizations: enables extra warnings and deeper analysis thus catches more errors/warnings |
| 4 | -O3 -flto |
| 5 | # treat warnings as errors |
| 6 | -Werror |
| 7 | # extra flags |
| 8 | -Wextra -Wshadow -Wvla -Wpointer-arith |
| 9 | -Wundef -Wstrict-overflow=4 -Wwrite-strings -Wunreachable-code |
| 10 | -Wbad-function-cast -Wdeclaration-after-statement |
| 11 | -Wmissing-prototypes -Wstrict-prototypes |
| 12 | # silence |
| 13 | -Wno-unused-parameter -Wno-missing-field-initializers |