[llvm-bugs] [Bug 42102] New: Doesn't warn about the unused variable

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jun 1 20:15:13 PDT 2019


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

            Bug ID: 42102
           Summary: Doesn't warn about the unused variable
           Product: clang
           Version: 8.0
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: yuri at tsoft.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Created attachment 22063
  --> https://bugs.llvm.org/attachment.cgi?id=22063&action=edit
testcase-unused-variable.cpp

The attached testcase has an unused variable 'err' but clang-8.0.0 doesn't
complain even with -Wall.

FreeBSD clang version 8.0.0 (tags/RELEASE_800/final 356365) (based on LLVM
8.0.0)
Target: x86_64-unknown-freebsd12.0
Thread model: posix
InstalledDir: /usr/bin

-- 
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/20190602/ac941f2a/attachment.html>


More information about the llvm-bugs mailing list