From: Hyotaek Shim Date: Tue, 8 Feb 2022 05:40:17 +0000 (+0900) Subject: Add -Wno-error=shadow build option for kdbus tests X-Git-Tag: submit/tizen_6.5/20220314.044848~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F23%2F270723%2F1;p=platform%2Fkernel%2Flinux-tizen-modules-source.git Add -Wno-error=shadow build option for kdbus tests In some different build environment (e.g., product divisions), several strict compilation options can be added like -Werror=shadow. Shadowing is intentional and not a bug in tests so that we avoid this build error by adding -Wno-error=shadow [ 105s] kdbus-test.h:42:20: error: declaration of '_ASSERT_RETURN_VAL_val0_' shadows a previous local [-Werror=shadow] [ 105s] 42 | __auto_type const _ASSERT_RETURN_VAL_val0_ = (val0);\ Change-Id: Ia4f8a746dce0b39c896daf2e4cd1c87f62a8dadd Signed-off-by: Hyotaek Shim (cherry picked from commit 614454cc441948f3c8c68ac2408fa86d7a716fa8) --- diff --git a/tests/kdbus/Makefile b/tests/kdbus/Makefile index 3d1c3fc..01e11d3 100644 --- a/tests/kdbus/Makefile +++ b/tests/kdbus/Makefile @@ -1,6 +1,6 @@ CFLAGS += -I../../include/uapi/ CFLAGS += -I../../samples/kdbus/ -CFLAGS += -std=gnu99 +CFLAGS += -std=gnu99 -Wno-error=shadow CFLAGS += -DKBUILD_MODNAME=\"kdbus\" -D_GNU_SOURCE LDFLAGS = -pthread -lcap -lm