commit | eb4b1143b1f54a96002a83ea961d40d3169e1ae2 | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Sun Mar 01 16:35:05 2015 -0600 |
committer | Rob Landley <rob@landley.net> | Sun Mar 01 16:35:05 2015 -0600 |
tree | 27992d2fd018b7577fd82e985dc4904e5a1271c3 | |
parent | 1be99e695059ba7dbe44765f4b477f7e173e98d1 [diff] |
Only switch on printf format warnings for error_exit() and friends when TOYBOX_DEBUG enabled. One again gcc manages to be incompetent about producing warnings. For example, in bzcat we error_exit() with a message that's an error code fed into an array of string constants, and apparently dereferencing an array of string literals doesn't give you a string literal according to -Wformat-security. Not breaking the code to humor the compiler here, the compiler is wrong.