Skip to content

Commit 0083475

Browse files
committed
Turning off unused check on intentionally unused variable
1 parent 93f584e commit 0083475

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Fw/Types/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,6 @@ add_fprime_subdirectory("${CMAKE_CURRENT_LIST_DIR}/GTest")
3939

4040
# Create an empty interface library and use it to register an implementation
4141
add_library(snprintf-format ${VALID_EMPTY})
42+
# Must surpress empty library warnings
43+
target_compile_options(snprintf-format PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-Wno-unused-const-variable>)
4244
register_fprime_implementation(Fw_StringFormat snprintf-format "${CMAKE_CURRENT_LIST_DIR}/snprintf_format.cpp")

0 commit comments

Comments
 (0)