https://llvm.org/bugs/show_bug.cgi?id=25546
Bug ID: 25546 Summary: Bad diagnostic when using -Wunused-macros and building .S files Product: clang Version: 3.7 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangb...@nondot.org Reporter: eyal.lo...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified If you build even the empty.S file: echo > /tmp/empty.S clang -Wunused-macros -c /tmp/empty.S You get a bad "unused macro" diagnostics on all the built-in macros: <built-in>:1:9: warning: macro is not used [-Wunused-macros] #define __llvm__ 1 ^ <built-in>:2:9: warning: macro is not used [-Wunused-macros] #define __clang__ 1 ^ ... -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs