mirror of
https://github.com/topjohnwu/selinux.git
synced 2024-12-04 01:20:52 +00:00
Android.mk: Add -D_GNU_SOURCE to common_cflags
Other build scripts define -D_GNU_SOURCE. The Android build system should too. Fixes the following warning: external/selinux/libsepol/cil/src/cil_mem.c:109:7: warning: implicit declaration of function 'vasprintf' is invalid in C99 [-Wimplicit-function-declaration]
This commit is contained in:
parent
a421da29eb
commit
46ed3e54b6
@ -64,6 +64,7 @@ cil_src_files := \
|
||||
cil/src/cil_verify.c
|
||||
|
||||
common_cflags := \
|
||||
-D_GNU_SOURCE \
|
||||
-Wall -W -Wundef \
|
||||
-Wshadow -Wmissing-noreturn \
|
||||
-Wmissing-format-attribute
|
||||
|
Loading…
Reference in New Issue
Block a user