4 ms·
Thanks! This prompted me to look up the flag to enable this. For GCC it’s: -Werror=format-security
by wrigby 4y ago
Thanks! This prompted me to look up the flag to enable this. For GCC it’s:
-Werror=format-security
- fay59 4y agoThe flag is -Wformat-nonliteral or -Wformat=2. -Wformat-security only includes a weaker variant that will warn if you pass a variable and no arguments to printf.