Project

General

Profile

Actions

Bug #488

closed

Development #483: Code cleanup

Unintialised variable used

Added by Volker Friese over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Start date:
11/23/2015
Due date:
11/24/2015
% Done:

100%

Estimated time:
Spent time:

Description

fBinSizeMom is not initialised when used to initialise fNBinsMomCharge.

warning: field 'fBinSizeMom' is uninitialized when used here
[-Wuninitialized]
fNbinsMomCharge(TMath::Nint( 2*(fNbinsMom+fMinMom/fBinSizeMom) )),
^
/Users/vfriese/software/cbmroot/trunk/source/hadron/CbmFillM2.cxx:96:55: warning: field 'fBinSizeMom' is uninitialized when used here
[-Wuninitialized]
fNbinsMomCharge(TMath::Nint( 2*(fNbinsMom+fMinMom/fBinSizeMom) )),
^

Actions #1

Updated by Volker Friese over 6 years ago

  • Due date set to 11/26/2015
  • Priority changed from Normal to High
Actions #2

Updated by Volker Friese over 6 years ago

Same in constructors of hadron/CbmFitM2.cxx

Actions #3

Updated by Florian Uhlig over 6 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Applied in changeset cbmroot|r8825.

Actions #4

Updated by Volker Friese over 6 years ago

  • Due date changed from 11/26/2015 to 11/24/2015
  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF