Skip to content

Commit

Permalink
[LLVM10] EventFilter fix warnings for clang 10
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodozov committed Apr 29, 2020
1 parent 6258a35 commit d030f66
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions EventFilter/CSCRawToDigi/plugins/CSCDigiValidator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,6 @@ bool CSCDigiValidator::filter(edm::Event& iEvent, const edm::EventSetup& iSetup)
CSCALCTDigiCollection::DigiRangeIterator alct = _alct->begin(), salct = _salct->begin();
CSCCorrelatedLCTDigiCollection::DigiRangeIterator lct = _lct->begin(), slct = _slct->begin();
L1CSCTrackCollection::const_iterator trk = _trk->begin(), strk = _strk->begin();
std::vector<csctf::TrackStub>::const_iterator dt = _dt->get().begin(), sdt = _sdt->get().begin();
// WARNING 5_0_X
dt++;
dt--;
sdt++;
sdt--;

//per detID, create lists of various digi types
matchingDetWireCollection wires;
Expand Down
2 changes: 1 addition & 1 deletion EventFilter/RPCRawToDigi/plugins/RPCTwinMuxDigiToRaw.cc
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void RPCTwinMuxDigiToRaw::produce(edm::Event& event, edm::EventSetup const& setu

std::map<int, FEDRawData> fed_data;
// Loop over the FEDs
for (std::pair<int, std::vector<RPCAMCLink> > const& fed_amcs : fed_amcs_) {
for (std::pair<int, std::vector<RPCAMCLink> > const fed_amcs : fed_amcs_) {
FEDRawData& data = data_collection->FEDData(fed_amcs.first);
unsigned int size(0);

Expand Down
2 changes: 1 addition & 1 deletion EventFilter/Utilities/src/json_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ namespace Json {
while (token.type_ == tokenComment && ok) {
ok = readToken(token);
}
bool badTokenType = (token.type_ == tokenArraySeparator && token.type_ == tokenArrayEnd);
bool badTokenType = (token.type_ == tokenArraySeparator || token.type_ == tokenArrayEnd);
if (!ok || badTokenType) {
return addErrorAndRecover("Missing ',' or ']' in array declaration", token, tokenArrayEnd);
}
Expand Down

0 comments on commit d030f66

Please sign in to comment.