|
|
|
|
|
by rhn_mk1
1526 days ago
|
|
Here's a set of C compiler flags that I find especially useful to prevent bugs from occurring: -Werror=implicit-function-declaration
-Werror=implicit-fallthrough=3
-Werror=maybe-uninitialized
-Werror=missing-field-initializers
-Werror=incompatible-pointer-types
-Werror=int-conversion
-Werror=redundant-decls
-Werror=parentheses
-Wformat-nonliteral
-Wformat-security
-Wformat
-Winit-self
-Wmaybe-uninitialized
-Wold-style-definition
-Wredundant-decls
-Wstrict-prototypes |
|