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

2024-11-19 Thread rdiez-2006 at rd10 dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39438 R. Diez changed: What|Removed |Added CC||rdiez-2006 at rd10 dot de --- Comment #14 from

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

2024-06-02 Thread peter0x44 at disroot dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39438 Peter Damianov changed: What|Removed |Added CC||peter0x44 at disroot dot org --- Commen

[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 changed: What|Removed |Added Keywords||diagnostic Status|UNCO

[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 --- Created attachment 32784 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32784&action=edit minimal C source code that demonstrates the problem minimal C source code that demonstrates the problem. Not

[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 --- (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 similar enough. A str

[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 --- (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 you use to avoid >

[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 --- 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 */ #include extern void pr

[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 changed: What|Removed |Added CC||manu at gcc dot gnu.org --- Comment

[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 changed: What|Removed |Added CC||tss at iki dot fi --- Comment #3 from Tim

[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 proposed

[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