[llvm-bugs] [Bug 33580] Inconsistent Wunused-value warning with respect to macros

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 27 08:01:17 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=33580

David Blaikie <dblaikie at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID
                 CC|                            |dblaikie at gmail.com

--- Comment #1 from David Blaikie <dblaikie at gmail.com> ---
I believe this behavior is intentional as there are many macros that produce
values (as "return value"-like results) that would otherwise trigger the unused
value warning, so the warning is suppressed from a macro context like this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170627/350b4f17/attachment.html>


More information about the llvm-bugs mailing list