diff --git a/GeneratorInterface/ExhumeInterface/src/ExhumeHadronizer.cc b/GeneratorInterface/ExhumeInterface/src/ExhumeHadronizer.cc index 13aecd2ce563d..19681e27ecb75 100644 --- a/GeneratorInterface/ExhumeInterface/src/ExhumeHadronizer.cc +++ b/GeneratorInterface/ExhumeInterface/src/ExhumeHadronizer.cc @@ -211,7 +211,6 @@ namespace gen { (static_cast(exhumeProcess_))->SetThetaMin(thetaMin); sigID = 400; } else { - sigID = -1; throw edm::Exception(edm::errors::Configuration, "ExhumeError") << " No valid Exhume Process"; } diff --git a/GeneratorInterface/GenFilters/plugins/PythiaAllDauVFilter.cc b/GeneratorInterface/GenFilters/plugins/PythiaAllDauVFilter.cc index 8904611b3822e..2fc476a6c5db8 100644 --- a/GeneratorInterface/GenFilters/plugins/PythiaAllDauVFilter.cc +++ b/GeneratorInterface/GenFilters/plugins/PythiaAllDauVFilter.cc @@ -89,7 +89,7 @@ bool PythiaAllDauVFilter::filter(edm::StreamID, edm::Event& iEvent, const edm::E int OK(1); vector vparticles; vector foundDaughter(dauIDs.size(), false); - auto dauCollection = &dauIDs; + const std::vector* dauCollection = nullptr; HepMC::GenEvent* myGenEvent = new HepMC::GenEvent(*(evt->GetEvent())); diff --git a/GeneratorInterface/LHEInterface/plugins/ExternalLHEProducer.cc b/GeneratorInterface/LHEInterface/plugins/ExternalLHEProducer.cc index 2b9d38c2c222b..c2704431d38b0 100644 --- a/GeneratorInterface/LHEInterface/plugins/ExternalLHEProducer.cc +++ b/GeneratorInterface/LHEInterface/plugins/ExternalLHEProducer.cc @@ -110,7 +110,7 @@ class ExternalLHEProducer : public edm::one::EDProducer beginRunPutToken_; class FileCloseSentry { public: - explicit FileCloseSentry(int fd) : fd_(fd){}; + explicit FileCloseSentry(int fd) : fd_(fd) {}; ~FileCloseSentry() { close(fd_); } @@ -505,7 +505,6 @@ void ExternalLHEProducer::executeScript(std::vector const& args, in close(filedes[1]); // If the exec succeeds, the read will fail. while (((rc2 = read(filedes[0], &rc, sizeof(int))) == -1) && (errno == EINTR)) { - rc2 = 0; } if ((rc2 == sizeof(int)) && rc) { throw cms::Exception("ExternalLHEProducer") diff --git a/GeneratorInterface/ReggeGribovPartonMCInterface/src/read.cc b/GeneratorInterface/ReggeGribovPartonMCInterface/src/read.cc index 5fc5cf97fdd97..cd6a717840157 100644 --- a/GeneratorInterface/ReggeGribovPartonMCInterface/src/read.cc +++ b/GeneratorInterface/ReggeGribovPartonMCInterface/src/read.cc @@ -5,7 +5,7 @@ #include int main(int numArgs, const char *args[]) { - int res; + // int res; if (numArgs != 2) { //PrintHelp(rs); @@ -21,10 +21,10 @@ int main(int numArgs, const char *args[]) { } LzmaFile lzma; - res = lzma.Open(args[1]); - res = lzma.DecodeAll(); - res = lzma.Close(); - + /*res =*/lzma.Open(args[1]); + /*res =*/lzma.DecodeAll(); + /*res =*/lzma.Close(); + /* if (res != SZ_OK) { if (res == SZ_ERROR_MEM) { return 0; //PrintError(rs, kCantAllocateMessage); @@ -37,5 +37,6 @@ int main(int numArgs, const char *args[]) { } return 0; //PrintErrorNumber(rs, res); } + */ return 0; } diff --git a/GeneratorInterface/SherpaInterface/src/SherpackUtilities.cc b/GeneratorInterface/SherpaInterface/src/SherpackUtilities.cc index 3247ff8037e03..d49edf480a0f2 100644 --- a/GeneratorInterface/SherpaInterface/src/SherpackUtilities.cc +++ b/GeneratorInterface/SherpaInterface/src/SherpackUtilities.cc @@ -417,7 +417,6 @@ namespace spu { printf("%c", buff[ll]); } printf("\n"); - bytes_read = fread(buff, 1, 512, a); for (int ll = 0; ll < 512; ll++) { printf("%c", buff[ll]); } @@ -431,7 +430,6 @@ namespace spu { } //~ printf("NEW LinkNAME: %s\n",newlonglinkname); } else if (buff[156] == 'L') { - bytes_read = fread(buff, 1, 512, a); for (int k = 0; k < filesize; k++) { newlongpathname[k] = buff[k]; }