public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "4tmuelle at informatik dot uni-hamburg dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/39438] Can't compile a wrapper around strftime with -Werror=format-nonliteral
Date: Thu, 12 Mar 2009 09:58:00 -0000	[thread overview]
Message-ID: <20090312095816.16296.qmail@sourceware.org> (raw)
In-Reply-To: <bug-39438-17434@http.gcc.gnu.org/bugzilla/>



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


  parent reply	other threads:[~2009-03-12  9:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-11 22:57 [Bug c/39438] New: " 4tmuelle at informatik dot uni-hamburg dot de
2009-03-12  9:40 ` [Bug c/39438] " rguenth at gcc dot gnu dot org
2009-03-12  9:58 ` 4tmuelle at informatik dot uni-hamburg dot de [this message]
     [not found] <bug-39438-4@http.gcc.gnu.org/bugzilla/>
2012-01-10 20:39 ` tss at iki dot fi
2014-05-10 16:47 ` hugh at mimosa dot com
2014-05-12 12:26 ` manu at gcc dot gnu.org
2014-05-12 14:58 ` hugh at mimosa dot com
2014-05-12 15:38 ` manu at gcc dot gnu.org
2014-05-12 15:52 ` manu at gcc dot gnu.org
2014-05-12 19:33 ` hugh at mimosa dot com
2015-02-27 16:43 ` manu at gcc dot gnu.org
2024-06-03  1:48 ` peter0x44 at disroot dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090312095816.16296.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).