File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1313// / \brief strangeness builder module
1414// / \author ALICE
1515
16- // simple checkers, but ensure 8 bit integers
17- #define BITSET (var, nbit ) ((var) |= (static_cast <uint8_t >(1 ) << static_cast <uint8_t >(nbit)))
18-
1916#ifndef PWGLF_UTILS_STRANGENESSBUILDERMODULE_H_
2017#define PWGLF_UTILS_STRANGENESSBUILDERMODULE_H_
2118
19+ // simple checkers, but ensure 8 bit integers
20+ #define BITSET (var, nbit ) ((var) |= (static_cast <uint8_t >(1 ) << static_cast <uint8_t >(nbit)))
21+
2222#include " TableHelper.h"
2323
2424#include " PWGLF/DataModel/LFStrangenessTables.h"
3434#include " Framework/HistogramRegistry.h"
3535#include " Framework/HistogramSpec.h"
3636
37+ #include < vector>
3738#include < array>
3839#include < cmath>
3940#include < cstdlib>
@@ -531,7 +532,8 @@ class BuilderModule
531532
532533 nEnabledTables = 0 ;
533534
534- TString listOfRequestors[nTables];
535+ const int nTablesConst = nTables; // silence warning
536+ TString listOfRequestors[nTablesConst];
535537 for (int i = 0 ; i < nTables; i++) {
536538 int f = baseOpts.enabledTables ->get (tableNames[i].c_str (), " enable" );
537539 if (f == 1 ) {
You can’t perform that action at this time.
0 commit comments