Skip to content

Add -Wno-padded to clang flags

Description

C and C++ compilers may pad structs and classes to better align memory. The -Wpadded flag, which is turned on by the -Weverything flag, causes the compiler to print warnings whenever it pads structs. There is nothing wrong about this, it is just an informative message.

Fix:

Add -Wno-padded to the clang flag list.