Started by Vonjo, January 21, 2013, 05:37:28 AM
0 Members and 1 Guest are viewing this topic.
===> CXX gui/money_frame.ccgui/money_frame.cc: In member function 'virtual void money_frame_t::zeichnen(koord, koord)':gui/money_frame.cc:439:66: error: format not a string literal and no format arguments [-Werror=format-security]cc1plus: some warnings being treated as errorsmake: *** [build/default/gui/money_frame.o] Error 1
sprintf( str_buf, translator::translate("Scenario lost!") );
Quote from: Dwachs on January 21, 2013, 07:39:01 AMIf the translate-call returns a string which has format specifiers (think of %s) then this piece of code could make problems. Afaict the translator code checks for wrong formt specifiers.
Quote from: Ters on January 21, 2013, 05:46:50 AMI don't get that error. I don't see why it should be an error either. It barely deserves to be a warning, which I don't get either.