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

2018-11-07 Thread groungccg at amelkin dot msk.ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39438 --- Comment #12 from Alexander Amelkin --- Also happens with `gcc (Ubuntu 8.1.0-5ubuntu1~16.04) 8.1.0`

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

2018-08-27 Thread groungccg at amelkin dot msk.ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39438 Alexander Amelkin changed: What|Removed |Added CC||groungccg at amelkin dot msk.ru ---

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

2015-02-27 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39438 Manuel López-Ibáñez manu at gcc dot gnu.org changed: What|Removed |Added Keywords||diagnostic

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

2014-05-12 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39438 Manuel López-Ibáñez manu at gcc dot gnu.org changed: What|Removed |Added CC||manu at gcc

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

2014-05-12 Thread hugh at mimosa dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39438 --- Comment #6 from D. Hugh Redelmeier hugh at mimosa dot com --- Responding to Comment 5 by Manuel López-Ibáñez: Thanks for looking at this. Could you produce a complete testcase === /* compile with -c -Wformat -Werror=format-nonliteral */

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

2014-05-12 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39438 --- Comment #7 from Manuel López-Ibáñez manu at gcc dot gnu.org --- (In reply to D. Hugh Redelmeier from comment #6) The best would be to include only the definitions of the types that you need and declare as 'extern' library functions that

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

2014-05-12 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39438 --- Comment #8 from Manuel López-Ibáñez manu at gcc dot gnu.org --- (In reply to D. Hugh Redelmeier from comment #6) If you can produce another similar example that works with printf, that would also help. I don't think that printf is

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

2014-05-12 Thread hugh at mimosa dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39438 --- Comment #9 from D. Hugh Redelmeier hugh at mimosa dot com --- Created attachment 32784 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=32784action=edit minimal C source code that demonstrates the problem minimal C source code that

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

2012-01-10 Thread tss at iki dot fi
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39438 Timo Sirainen tss at iki dot fi changed: What|Removed |Added CC||tss at iki dot fi ---

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

2009-03-12 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-03-12 09:40 --- It won't work. You can either put the wrapper in a system header (add #pragma GCC system_header) or build this TU with -fno-builtin-strftime. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39438

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

2009-03-12 Thread 4tmuelle at informatik dot uni-hamburg dot de
--- 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