From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17502 invoked by alias); 13 Jan 2007 18:40:34 -0000 Received: (qmail 17483 invoked by uid 48); 13 Jan 2007 18:40:24 -0000 Date: Sat, 13 Jan 2007 18:40:00 -0000 Message-ID: <20070113184024.17482.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/28492] -Wmissing-format-attribute causes warning for vsnprintf() In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "h dot b dot furuseth at usit dot uio dot no" 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: 2007-01/txt/msg01064.txt.bz2 ------- Comment #1 from h dot b dot furuseth at usit dot uio dot no 2007-01-13 18:40 ------- The warning is a bit misleading, "function might be possible candidate for 'printf' format attribute" means the _calling_ function might be such a candidate, not the function being called on the line it warns about. The warning is still spurious in this case though, and gcc could tell that: A function cannot be such a candidate if it has a prototype without variable arguments. Here is another example of such a spurious warning: Hallvard -- h dot b dot furuseth at usit dot uio dot no changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |h dot b dot furuseth at usit | |dot uio dot no http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28492