[llvm-bugs] [Bug 42239] New: Elvis operator reporting result unused warning

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 11 12:43:57 PDT 2019


            Bug ID: 42239
           Summary: Elvis operator reporting result unused warning
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nhuck15 at gmail.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    ndesaulniers at google.com, richard-llvm at metafoo.co.uk,
                    srhines at google.com

The elvis operator reports a warning "expression result unused" on a case where
the expression result is modified, but not assigned to a variable.

Basic example:

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/20190611/e7171fc5/attachment.html>

More information about the llvm-bugs mailing list