Private
Public Access
2
0

iio: Silence format-truncation warnings

Truncation warnings are default-on with many gcc-10 packages but the
module is fine with the potential truncations of sysfs paths as they
are.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Jan Kiszka
2021-09-13 08:26:41 +02:00
committed by Tom Ingleby
parent a54d4499ec
commit 73afc7a7e2

View File

@@ -39,6 +39,7 @@ if (NOT PERIPHERALMAN)
${mraa_LIB_SRCS_NOAUTO}
${PROJECT_SOURCE_DIR}/src/iio/iio.c
)
set_source_files_properties(${PROJECT_SOURCE_DIR}/src/iio/iio.c PROPERTIES COMPILE_OPTIONS "-Wno-format-truncation")
endif ()
set (mraa_LIB_X86_SRCS_NOAUTO