1# Common C/C++ compiler flags for test-vendor lib
2#
3# -Wno-gnu-variable-sized-type-not-at-end is needed, because struct BT_HDR
4#  is defined as a variable-size header in a struct.
5# -Wno-typedef-redefinition is needed because of the way the struct typedef
6#  is done in osi/include header files. This issue can be obsoleted by
7#  switching to C11 or C++.
8# -Wno-unused-parameter is needed, because there are too many unused
9#  parameters in all the code.
10#
11test-vendor_CFLAGS += \
12  -fvisibility=hidden \
13  -Wall \
14  -Wextra \
15  -Werror \
16  -Wno-gnu-variable-sized-type-not-at-end \
17  -Wno-typedef-redefinition \
18  -Wno-unused-parameter \
19  -DLOG_NDEBUG=1 \
20  -DEXPORT_SYMBOL="__attribute__((visibility(\"default\")))"
21
22test-vendor_CONLYFLAGS += -std=c99
23
24include $(call all-subdir-makefiles)
25
26# Cleanup our locals
27test-vendor_CFLAGS :=
28test-vendor_CONLYFLAGS :=
29