Skip to content

Commit

Permalink
Merge pull request #22882 from Dr15Jones/clangFixFWCoreFramework
Browse files Browse the repository at this point in the history
Minor cleanups to avoid clang warnings
  • Loading branch information
cmsbuild committed Apr 9, 2018
2 parents 91f081a + 8ec0847 commit d9d487b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion FWCore/Framework/interface/ProducerBase.h
Expand Up @@ -60,7 +60,7 @@ namespace edm {
public:
typedef ProductRegistryHelper::TypeLabelList TypeLabelList;
ProducerBase ();
~ProducerBase() override;
~ProducerBase() noexcept(false) override;

/// used by the fwk to register list of products
std::function<void(BranchDescription const&)> registrationCallback() const;
Expand Down
2 changes: 1 addition & 1 deletion FWCore/Framework/src/EventProcessor.cc
Expand Up @@ -1118,7 +1118,7 @@ namespace edm {

auto status= std::make_shared<LuminosityBlockProcessingStatus>(this, preallocations_.numberOfStreams(), iRunResource) ;

auto lumiWork = [this, iHolder, iSync, status](edm::LimitedTaskQueue::Resumer iResumer) mutable {
auto lumiWork = [this, iHolder, status](edm::LimitedTaskQueue::Resumer iResumer) mutable {
if(iHolder.taskHasFailed()) { return; }

status->setResumer(std::move(iResumer));
Expand Down
3 changes: 2 additions & 1 deletion FWCore/Framework/test/MockEventProcessor.cc
Expand Up @@ -30,7 +30,8 @@ namespace {
}

namespace edm {
struct LuminosityBlockPrincipal {
class LuminosityBlockPrincipal {
public:
LuminosityBlockPrincipal(int iRun,int iLumi): run_(iRun),lumi_(iLumi){}
int run_;
int lumi_;
Expand Down

0 comments on commit d9d487b

Please sign in to comment.