From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16971 invoked by alias); 12 Mar 2009 09:58:31 -0000 Received: (qmail 16297 invoked by uid 48); 12 Mar 2009 09:58:16 -0000 Date: Thu, 12 Mar 2009 09:58:00 -0000 Message-ID: <20090312095816.16296.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/39438] Can't compile a wrapper around strftime with -Werror=format-nonliteral In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "4tmuelle at informatik dot uni-hamburg dot de" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-03/txt/msg00811.txt.bz2 ------- 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