tests: Suppress deprecation warning of usbhost 06/301006/1
authorYoungjae Cho <y0.cho@samsung.com>
Tue, 7 Nov 2023 03:56:38 +0000 (12:56 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Tue, 7 Nov 2023 04:12:24 +0000 (13:12 +0900)
It suppresses warning:
usb-host-ffs-test-daemon/descs_gen.c:43:9: warning:
 'usb_functionfs_descs_head' is deprecated [-Wdeprecated-declarations]

As of the 3.14, the struct has been deprecated.

Change-Id: I90c2061c810029ba866b703d3eba7727eb993035
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
tests/usb-host-ffs-test-daemon/CMakeLists.txt

index e182bb56e339d5273df9778034d962fd5dc25be9..d8aa443c1a55856e2f43bd1d05139a41289b9e1b 100644 (file)
@@ -5,7 +5,7 @@ SET(SRCS
        usb-host-ffs-test-daemon.c
 )
 
-SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -g -fno-omit-frame-pointer -finstrument-functions")
+SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -g -fno-omit-frame-pointer -finstrument-functions -Wno-deprecated-declarations")
 INCLUDE(FindPkgConfig)
 pkg_check_modules(SYSTEMD REQUIRED libsystemd)
 FOREACH(flag ${SYSTEMD_CFLAGS})