mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-06 16:21:50 +00:00
shared: add static asserts for size/alignment of NMEtherAddr
This commit is contained in:
parent
f125d821be
commit
ea3b979a42
|
@ -19,6 +19,9 @@
|
|||
#include "nm-errno.h"
|
||||
#include "nm-str-buf.h"
|
||||
|
||||
G_STATIC_ASSERT(sizeof(NMEtherAddr) == 6);
|
||||
G_STATIC_ASSERT(_nm_alignof(NMEtherAddr) == 1);
|
||||
|
||||
G_STATIC_ASSERT(sizeof(NMUtilsNamedEntry) == sizeof(const char *));
|
||||
G_STATIC_ASSERT(G_STRUCT_OFFSET(NMUtilsNamedValue, value_ptr) == sizeof(const char *));
|
||||
|
||||
|
|
Loading…
Reference in a new issue