[Bug c/39438] Can't compile a wrapper around strftime with -Werror=format-nonliteral

4tmuelle at informatik dot uni-hamburg dot de gcc-bugzilla@gcc.gnu.org
Thu Mar 12 09:58:00 GMT 2009



------- Comment #2 from 4tmuelle at informatik dot uni-hamburg dot de  2009-03-12 09:58 -------
Hey Richard. Thanks for the timely feedback.

As far as I know, it works more or less good for printf-wrappers. So I expected
this to be working for strftime as well.

I don't think that your proposed solutions are clean and desirable ones, do
you?

Is there anything wrong in expecting the posted code snipped to compile fine?
Especially if the "fmt" argument is indeed a checked, constant, fixed size
(literal) string.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39438



More information about the Gcc-bugs mailing list