[LLVMbugs] [Bug 9901] New: -std=gnu99 produces a warning when linking

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 11 10:30:49 PDT 2011


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

           Summary: -std=gnu99 produces a warning when linking
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: chantry.xavier at gmail.com
                CC: llvmbugs at cs.uiuc.edu


$ clang -std=gnu99 test.c -c
-> no warning
$ clang -std=gnu99 test.o
clang: warning: argument unused during compilation: '-std=gnu99'

When using Makefiles, how can we specify CFLAGS='-std=gnu99' only for building
and not for the linking step ?

It's rather annoying to have lots of useless warning and not any way to even
work around it.

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