Skip to content

Commit a4eb86b

Browse files
paul-elliott-armJethro Beekman
authored and
Jethro Beekman
committed
Reduce level of -Wformat-truncation
Reduce level of format truncation warnings due to issues with false positives (an unknown size buffer is always treated as size 1) Signed-off-by: Paul Elliott <[email protected]>
1 parent c700c03 commit a4eb86b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mbedtls-sys/vendor/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ if(CMAKE_COMPILER_IS_GNU)
198198
endif()
199199
endif()
200200
if (GCC_VERSION VERSION_GREATER 7.0 OR GCC_VERSION VERSION_EQUAL 7.0)
201-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wformat-overflow=2 -Wformat-truncation=2")
201+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wformat-overflow=2 -Wformat-truncation")
202202
endif()
203203
set(CMAKE_C_FLAGS_RELEASE "-O2")
204204
set(CMAKE_C_FLAGS_DEBUG "-O0 -g3")

0 commit comments

Comments
 (0)