]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/CALO/AliHLTCaloChannelRawDataStruct.h
- fixing warnings/coverity
[u/mrichter/AliRoot.git] / HLT / CALO / AliHLTCaloChannelRawDataStruct.h
1 #ifndef ALIHLTCALOCHANNELRAWDATASTRUCT_H
2 #define ALIHLTCALOCHANNELRAWDATASTRUCT_H
3
4 /**************************************************************************
5  * This file is property of and copyright by the Experimental Nuclear     *
6  * Physics Group, Dep. of Physics                                         *
7  * University of Oslo, Norway, 2007                                       *
8  *                                                                        *
9  * Author: Per Thomas Hille <perthi@fys.uio.no> for the ALICE HLT Project.*
10  * Contributors are mentioned in the code where appropriate.              *
11  * Please report bugs to perthi@fys.uio.no                                *
12  *                                                                        *
13  * Permission to use, copy, modify and distribute this software and its   *
14  * documentation strictly for non-commercial purposes is hereby granted   *
15  * without fee, provided that the above copyright notice appears in all   *
16  * copies and that both the copyright notice and this permission notice   *
17  * appear in the supporting documentation. The authors make no claims     *
18  * about the suitability of this software for any purpose. It is          *
19  * provided "as is" without express or implied warranty.                  *
20  **************************************************************************/
21
22 #include "AliHLTCaloChannelDataStruct.h"
23 #include "AliHLTCaloCoordinate.h"
24 #include "Rtypes.h"
25
26 // disable warnings to avoid
27 // warning: base class ‘class ...’ has a non-virtual destructor
28 #if defined __GNUC__
29 #if __GNUC__ == 4 && __GNUC_MINOR__ > 3
30 #pragma GCC diagnostic ignored "-Weffc++"
31 #else
32 #pragma GCC system_header 
33 #endif
34 #elif defined __SUNPRO_CC
35 #pragma disable_warn
36 #elif defined _MSC_VER
37 #pragma warning(push, 1)
38 #endif
39
40 ///comment
41
42 // using namespace CaloHLTConst;
43
44 struct  AliHLTCaloChannelRawDataStruct : public AliHLTCaloChannelDataStruct
45 {
46   AliHLTCaloCoordinate fCoordinate;
47   int nSamplesUsed;
48   // UShort_t fDataPtr[ALTROMAXSAMPLES] = {0,};
49   UShort_t fData;
50 };
51
52 #if defined __GNUC__
53 #if __GNUC__ == 4 && __GNUC_MINOR__ > 3
54 #pragma GCC diagnostic ignored "-Weffc++"
55 #endif
56 #elif defined __SUNPRO_CC
57 #pragma enable_warn
58 #elif defined _MSC_VER
59 #pragma warning(pop)
60 #endif
61
62 #endif