[LLVMbugs] [Bug 7337] -Wunused-parameter

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jun 14 07:45:50 PDT 2010


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

Douglas Gregor <dgregor at apple.com> changed:

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

--- Comment #1 from Douglas Gregor <dgregor at apple.com> 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.



More information about the llvm-bugs mailing list