Menu

#7 bwm-ng-0.6 fails to build with -Wformat -Wformat-security

v1.0 (example)
closed-fixed
nobody
0.6.1 (1)
5
2015-07-26
2013-12-03
No

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

Discussion

  • Natanael Copa

    Natanael Copa - 2013-12-03

    Attached patch fixes it.

     
  • vgropp

    vgropp - 2015-07-26
    • labels: --> 0.6.1
    • status: open --> closed-fixed
     
  • vgropp

    vgropp - 2015-07-26

    should be fixed in 0.6.1

     

Log in to post a comment.

MongoDB Logo MongoDB