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

Douglas Gregor <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #1 from Douglas Gregor <[email protected]> 2010-06-14 09:45:50 CDT 
---
Clang is behaving correctly, since it is providing warnings (and errors, and
code generation, etc.) based on the current preprocessor settings.

To silence the warning in this particular case, add 

  (void)x;

to the #else block.

To silence the warning in all cases, use -Wno-unused-parameter.

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