http://llvm.org/bugs/show_bug.cgi?id=7639
Summary: -Wempty-body is enabled by default
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
gcc hasn't -Wempty-body enabled by default (only if explicit declared or
-Wextra), but clang has. So clang produces warnings like:
Wempty-body.c:2:8: warning: if statement has empty body [-Wempty-body]
if(1);
while gcc compiles code silently.
It prevents using clang as drop-in replacement for gcc if project has -Werror
in CFLAGS.
--
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