This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

"format not a string literal"


Its must be a recent addition since I haven't seen it before.  The
current CVS gcc emits

	warning: format not a string literal, argument types not checked

Please remove this again.  This warning is useless and it increases
the noice level.  If some call to a function marked with the 'printf'
or `scanf' attribute has no string literal in this position this can
very well be intended.  E.g., in the glibc implementation this happens
all over the place for functions like

__STDIO_INLINE int
vprintf (__const char *__restrict __fmt, _G_va_list __arg) __THROW
{
  return vfprintf (stdout, __fmt, __arg);
}


This now provokes a warning.  This is really bad since there is no way
to prevent this.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]