Use offsetof to reduce UB

This commit is contained in:
Jesse Ruderman
2021-07-11 07:45:55 -07:00
parent cac0b57d7c
commit 98fd1f9c47
3 changed files with 4 additions and 4 deletions
+1
View File
@@ -84,6 +84,7 @@ ifeq (${TOOLCHAIN},clang)
CXXFLAGS_EARLY += -march=native -fPIC
CXXFLAGS_EARLY += -W -Wall -Wextra -Werror -pedantic
CXXFLAGS_EARLY += -Wno-unused-parameter -Wno-implicit-fallthrough -Wno-maybe-uninitialized -Wno-unknown-warning-option
CXXFLAGS_EARLY += -Wno-invalid-offsetof
endif
ifeq (${TOOLCHAIN},gcc)