From bd47c80564dff16ff1a9c66f953e278a1f26f212 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 7 Jul 2015 12:24:57 +0300 Subject: [PATCH] Include stddef.h to use the standard offsetof() src/utils/list.h ended up defining a local version of offsetof() due to stddef.h not getting included. This resulted in unnecessary warnings from ubsan related to "dereferencing" of a NULL pointer. Signed-off-by: Jouni Malinen --- src/utils/includes.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/includes.h b/src/utils/includes.h index 6c6ec87d0..978157495 100644 --- a/src/utils/includes.h +++ b/src/utils/includes.h @@ -17,6 +17,7 @@ #include "build_config.h" #include +#include #include #include #include