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 <j@w1.fi>
This commit is contained in:
parent
028b19675d
commit
bd47c80564
1 changed files with 1 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
|||
#include "build_config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
|
|
Loading…
Reference in a new issue