gavalian / hipo

High Performance Output Data format for experimental Physics
2 stars 9 forks source link

purge warnings #7

Closed dglazier closed 4 years ago

dglazier commented 4 years ago

On some compilers i.e. on ifarm. Warnings are output for not having struct data members initialised. Here I just explicitly initialise the data members :

typedef struct { int signatureString{}; // 1) identifier string is HREC (int = 0x43455248 int recordLength{}; // 2) TOTAL Length of the RECORD, includes INDEX array int recordDataLength{}; // 3) Length of the DATA uncompressed int recordDataLengthCompressed{}; // 4) compressed length of the DATA buffer int numberOfEvents{} ; // 5) number of event, data buckets in DATA buffer int headerLength{} ; // 6) Length of the buffer represengin HEADER for the record int indexDataLength{} ; // 7) Length of the index buffer (in bytes) int userHeaderLength{}; // user header length in bytes int userHeaderLengthPadding{}; // the padding added to user header Length int bitInfo{}; int compressionType{}; int compressedLengthPadding{}; int dataEndianness{}; } recordHeader_t;