theengs / decoder

Efficient, portable and lightweight library for Internet of Things payload decoding.
https://decoder.theengs.io
GNU General Public License v3.0
116 stars 38 forks source link

fix: compiler warning: dereferencing type-punned pointer will break strict-aliasing rules #535

Closed devmirek closed 4 months ago

devmirek commented 4 months ago

Description:

During compilation I get gcc warning: decoder.cpp:106:22: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] This fix allows to compile the library with -Wall -Wextra -Werror parameters

Checklist:

DigiH commented 4 months ago

Thanks