From 9d7732d0eac873a11ba6912ca50506d71c7f532c Mon Sep 17 00:00:00 2001 From: JinWang An Date: Wed, 19 Jul 2023 15:33:28 +0900 Subject: Fix option for gcc 11+ version Change-Id: I9090e70d8285b4e5b3cabc4eacd651d50a355c69 Signed-off-by: JinWang An --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 441dbc8..e097dc3 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -107,6 +107,7 @@ INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/Safety.zip DESTINATION /usr/share ADD_DEFINITIONS(${pkgs_CFLAGS}) ADD_DEFINITIONS("-fpie") +ADD_DEFINITIONS("-Wno-format-truncation") ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"") ADD_DEFINITIONS("-DFACTORYFS=\"$ENV{FACTORYFS}\"") -- cgit v1.2.3