[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug c++/13070] [3.3/3.4 regression] -Wformat option ignored in g++



------- Additional Comments From janis187 at us dot ibm dot com  2003-12-10 22:56 -------
The regression in PR 13070 was introduced or exposed with this patch
to both mainline and the 3.3-branch:

2003-03-17  Roger Sayle  <roger@eyesopen.com>

        * decl.c (duplicate_decls): Use the new type when prototyping
        anticipated decls, even when the types match.  This defines the
        exception list for the built-in function.

The regression hunt took place on i686-pc-linux-gnu using the following
testcase, modified to not require header files, with -Wformat:

extern "C" int printf (const char *, ...);
int main ()
{
  printf ("%d\n", 1, 1);
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |roger at eyesopen dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13070

------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.



Reply to: