Skip to content

Commit e376b7b

Browse files
committed
Fix unused function warnings in 7_1_X gcc490.
1 parent 469a069 commit e376b7b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

CondCore/DBOutputService/test/stubs/writeInt.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ typedef std::vector<int> Payload;
1212

1313
namespace {
1414

15-
std::string toa(int i) {
15+
inline std::string toa(int i) {
1616
std::ostringstream ss;
1717
ss << i;
1818
return ss.str();

DataFormats/EcalDigi/test/EcalDigi_t.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ TestEcalDigi<DigiCollection>::TestEcalDigi() : sv(10){
5050

5151
namespace {
5252

53-
void check_ctor(EBDigiCollection const& digis) {
53+
inline void check_ctor(EBDigiCollection const& digis) {
5454
CPPUNIT_ASSERT(digis.subdetId()==EcalBarrel);
5555
}
56-
void check_ctor(EEDigiCollection const& digis) {
56+
inline void check_ctor(EEDigiCollection const& digis) {
5757
CPPUNIT_ASSERT(digis.subdetId()==EcalEndcap);
5858
}
5959

EventFilter/SiPixelRawToDigi/src/PixelUnpackingRegions.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ bool isFPIXFED(unsigned int fed) {return fed>=32;}
2929
bool isBPIXModule(unsigned int id) {return DetId(id).subdetId() == PixelSubdetector::PixelBarrel;}
3030
bool isFPIXModule(unsigned int id) {return DetId(id).subdetId() == PixelSubdetector::PixelEndcap;}
3131

32-
std::ostream& operator<<(std::ostream& s, const PixelUnpackingRegions::Module& m)
32+
inline std::ostream& operator<<(std::ostream& s, const PixelUnpackingRegions::Module& m)
3333
{
3434
s<< (isBPIXModule(m.id) ? "BPIX " : "FPIX ") <<m.id<<" "<<m.fed<<" "<<m.phi<<" "<<m.x<<" "<<m.y<<" "<<m.z<<" "<<sqrt(std::pow(m.x,2)+std::pow(m.y,2));
3535
return s;

JetMETCorrections/MCJet/plugins/JetUtilMC.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ double Phi_mpi_pi(double x) {
2222
return x;
2323
}
2424

25-
double dPhi(double phi1,double phi2){
25+
inline double dPhi(double phi1,double phi2){
2626
phi1=Phi_0_2pi(phi1);
2727
phi2=Phi_0_2pi(phi2);
2828
return Phi_mpi_pi(phi1-phi2);

0 commit comments

Comments
 (0)