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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


$ 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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to