[LLVMbugs] [Bug 15558] New: False positive for -Wunused-variable with static member of internal-linkage type
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Mar 20 23:15:38 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=15558
Bug ID: 15558
Summary: False positive for -Wunused-variable with static
member of internal-linkage type
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: matthewbg at google.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
$ cat test.cc
namespace {
class Bar {};
}
class Foo {
static Bar b;
};
$ clang -fsyntax-only -Wunused-variable test.cc
test.cc:5:14: warning: unused variable 'b' [-Wunused-variable]
static Bar b;
^
In the actual code I found this in, 'Foo' and 'Bar' are defined in foo.h, which
is included into both foo.cc, which uses 'b', and foo_test.cc, which doesn't
use 'b'; we produce a warning when compiling foo_test.cc.
--
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/20130321/e7737e4e/attachment.html>
More information about the llvm-bugs
mailing list