[LLVMbugs] [Bug 2843] llvm-gcc has -Wformat-nonliteral on by default, can' t switch it off

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Nov 17 08:47:12 PST 2008


http://llvm.org/bugs/show_bug.cgi?id=2843


Rafael Ávila de Espíndola <rafael.espindola at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




--- Comment #4 from Rafael Ávila de Espíndola <rafael.espindola at gmail.com>  2008-11-17 10:47:11 ---
It looks like this was not fully fixed. Building llvm-gcc @56905 and doing "cc1
test.i" I get

cc1: warning: -Wformat-security ignored without -Wformat

With a newer revision (58836), I get

test.i:7: warning: format not a string literal and no format arguments

where test.i is

----------------------------------------------------------
extern int printf (__const char *__restrict __format, ...);

extern const char *foo();

int main(void) {
  const char *the_string = foo();
  printf(the_string);
}
--------------------------------------------------------


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list