From e510275cedb540b435773d1105c4545d3e59aa32 Mon Sep 17 00:00:00 2001 From: Fabio Baltieri Date: Thu, 12 Dec 2024 19:58:16 +0000 Subject: [PATCH] unittest: set -Wno-format-zero-length This flag is set on other compiler as well for normal builds, and suppresses a warning for empty print, which is apparently quite common. The unit test build uses its own flags so set it there as well to get the same behavior as with the rest of the code base. Signed-off-by: Fabio Baltieri --- cmake/modules/unittest.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/modules/unittest.cmake b/cmake/modules/unittest.cmake index 6565e89aec5..5bb6fb30c13 100644 --- a/cmake/modules/unittest.cmake +++ b/cmake/modules/unittest.cmake @@ -112,6 +112,7 @@ target_compile_options(test_interface INTERFACE ${EXTRA_CFLAGS_AS_LIST} $<$:${EXTRA_CXXFLAGS_AS_LIST}> $<$:${EXTRA_AFLAGS_AS_LIST}> + -Wno-format-zero-length ) target_link_options(testbinary PRIVATE