[LLVMbugs] [Bug 22624] New: Using -Wno-unused-local-typedef does not disable all warnings
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Feb 18 01:45:47 PST 2015
http://llvm.org/bugs/show_bug.cgi?id=22624
Bug ID: 22624
Summary: Using -Wno-unused-local-typedef does not disable all
warnings
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Driver
Assignee: unassignedclangbugs at nondot.org
Reporter: juergen.hunold at gmx.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 13894
--> http://llvm.org/bugs/attachment.cgi?id=13894&action=edit
Compile command used.
Using current clang++ (trunk 229641) I still get -Wunused-local-typedef
warnings even if I specify -Wno-unused-local-typedef to disable this warning.
I'm using -Weverything and disable all irrelevant warnings. See attached file
compile.txt for the command line.
This can be reproduced with a current boost, using Boost.Concept. See
compile.txt for details.
Diagnosis:
In file included from stl_concept_check.cpp:15:
../../boost/concept_check.hpp:904:11: warning: unused typedef
'boost_concept_check904' [-Wunused-local-typedef]
BOOST_CONCEPT_ASSERT((BinaryPredicate<value_compare,value_type_,value_type_>));
^
../../boost/concept/assert.hpp:43:5: note: expanded from macro
'BOOST_CONCEPT_ASSERT'
BOOST_CONCEPT_ASSERT_FN(void(*)ModelInParens)
^
../../boost/concept/detail/general.hpp:79:7: note: expanded from macro
'BOOST_CONCEPT_ASSERT_FN'
BOOST_PP_CAT(boost_concept_check,__LINE__) \
^
../../boost/preprocessor/cat.hpp:22:32: note: expanded from macro
'BOOST_PP_CAT'
# define BOOST_PP_CAT(a, b) BOOST_PP_CAT_I(a, b)
^
../../boost/preprocessor/cat.hpp:29:34: note: expanded from macro
'BOOST_PP_CAT_I'
# define BOOST_PP_CAT_I(a, b) a ## b
^
<scratch space>:153:1: note: expanded from here
boost_concept_check904
^
26 warnings generated.
This also involves Boost.PP and is most probably related to this
<scratch_space>. Dumping the preprocessed source and compiling the dump lead to
different messages.
--
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/20150218/c8f73d60/attachment.html>
More information about the llvm-bugs
mailing list