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

Reply via email to