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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user