This commit is contained in:
2022-03-02 06:45:45 -07:00
parent 71223d54c9
commit 5b19f3cc33

View File

@@ -46,7 +46,7 @@ The summaries are taken from https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.
* `-Wextra`: turns on even more warnings, but still not all.
* `-Wcast-align`: warn whenever a pointer is cast such that the required alignment is increased (`char*` -> `int*`).
* `-Wcast-qual`: warn when qualifier (`cosnst`) is cast away, or introduces a qualifier in an unsafe way.
* `-Wdisabled-optimization`: warn if a requested optimization pass is disable.
* `-Wdisabled-optimization`: warn if a requested optimization pass is disabled (e.g. code is too large, has some other feature that makes g++ give up).
* `-Wduplicated-branches`: warn if if-else branches have identical bodies.
* `-Wduplicated-cond`: warn about duplicated conditions in an if-else-if chain.
* `-Wformat=2`: same as `-Wformat` `-Wformat-nonliteral` `-Wformat-security` `-Wformat-y2k`. make sure printf-style function arguments match their format strings.