Skip to content

Commit

Permalink
[GCC11] Fix compilation warning for EcalMatacqDigi
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Sep 3, 2021
1 parent 7912bbc commit 65d2302
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions DataFormats/EcalDigi/interface/EcalMatacqDigi.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class EcalMatacqDigi {
public:
/** Default constructor.
*/
EcalMatacqDigi() : chId_(-1), ts_(0.), tTrigS_(999.), version_(-1) { init(); }
EcalMatacqDigi() : chId_(-1), freq(0), ts_(0.), tTrigS_(999.), version_(-1) { init(); }

/** Constructor
* @param samples adc time samples
Expand All @@ -43,7 +43,7 @@ class EcalMatacqDigi {
const double& ts,
const short& version = -1,
const double& tTrig = 999.)
: chId_(chId), data_(samples), ts_(ts), tTrigS_(tTrig), version_(version) {
: chId_(chId), data_(samples), freq(0), ts_(ts), tTrigS_(tTrig), version_(version) {
init();
};

Expand Down Expand Up @@ -270,6 +270,7 @@ class EcalMatacqDigi {
* @param value new value
*/
void laserPower(int value) { laserPower_ = value; }
#endif

void init() {
#if (ECAL_MATACQ_DIGI_VERS >= 2)
Expand All @@ -285,11 +286,11 @@ class EcalMatacqDigi {
emtcPhase_ = -1;
attenuation_dB_ = -1;
laserPower_ = -1;
tv_sec_ = 0;
tv_usec_ = 0;
#endif
}

#endif

private:
/** Electronic channel id
*/
Expand Down

0 comments on commit 65d2302

Please sign in to comment.