bwm-ng-0.6 fails to build with -Wformat -Wformat-security
Status: Beta
Brought to you by:
vgropp
When compiling with -Wformat -Wformat-security (to catch potensial security issues) I get the following error(s):
output.c: In function 'print_header':
output.c:226:13: error: format not a string literal and no format arguments [-Werror=format-security]
fprintf(tmp_out_file,input2str());
^
output.c:227:13: error: format not a string literal and no format arguments [-Werror=format-security]
fprintf(tmp_out_file,show_all_if2str());
^
output.c:237:13: error: format not a string literal and no format arguments [-Werror=format-security]
printf(input2str());
^
output.c: At top level:
cc1: warning: unrecognized command line option "-Wno-long-double" [enabled by default]
cc1: some warnings being treated as errors
Makefile:241: recipe for target 'output.o' failed
make[2]: *** [output.o] Error 1
Attached patch fixes it.
should be fixed in 0.6.1