Commit 06fa42b
committed
defqueue.hh: eliminate warnings reported by clang-8.0.0
In file included from cslinker.cc:22:
defqueue.hh:58:19: warning: 'const' qualifier on reference type 'TDefByChecker::const_reference' (aka 'const std::pair<const std::__cxx11::basic_string<char>, std::map<std::__cxx11::basic_string<char>, std::__cxx11::list<Defect, std::allocator<Defect> >, std::less<std::__cxx11::basic_string<char> >, std::allocator<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::list<Defect, std::allocator<Defect> > > > > > &') has no effect [-Wignored-qualifiers]
BOOST_FOREACH(const TDefByChecker::const_reference iRow, stor_)
^~~~~~
/usr/include/boost/foreach.hpp:1107:14: note: expanded from macro 'BOOST_FOREACH'
for (VAR = BOOST_FOREACH_DEREF(COL); !BOOST_FOREACH_ID(_foreach_continue); BOOST_FOREACH_ID(_foreach_continue) = true)
^
In file included from cslinker.cc:22:
defqueue.hh:59:23: warning: 'const' qualifier on reference type 'TDefByFile::const_reference' (aka 'const std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::list<Defect, std::allocator<Defect> > > &') has no effect [-Wignored-qualifiers]
BOOST_FOREACH(const TDefByFile::const_reference iCol, iRow.second)
^~~~~~
/usr/include/boost/foreach.hpp:1107:14: note: expanded from macro 'BOOST_FOREACH'
for (VAR = BOOST_FOREACH_DEREF(COL); !BOOST_FOREACH_ID(_foreach_continue); BOOST_FOREACH_ID(_foreach_continue) = true)
^
2 warnings generated.
Closes: https://github.com/kdudka/csdiff/pull/101 parent 5ab0083 commit 06fa42b
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
| 58 | + | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
0 commit comments