Changeset 19021 for trunk


Ignore:
Timestamp:
06/20/18 19:30:24 (6 years ago)
Author:
tbretz
Message:
Suppress some compiler warnings with clang.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/HeadersFAD.h

    r17212 r19021  
    218218        //
    219219#ifdef __cplusplus
     220
    220221        EventHeader() { init(*this); }
    221222        EventHeader(const uint16_t *ptr)
     
    223224            *this = std::vector<uint16_t>(ptr, ptr+sizeof(EventHeader)/2);
    224225        }
     226
     227#pragma clang diagnostic push
     228#pragma clang diagnostic ignored "-Waddress-of-packed-member"
    225229
    226230        void operator=(const std::vector<uint16_t> &vec)
     
    254258            return htoncpy(h);
    255259        }
     260
     261#pragma clang diagnostic pop
    256262
    257263        bool operator==(const EventHeader &h) const
Note: See TracChangeset for help on using the changeset viewer.