Skip to content
Snippets Groups Projects
Commit 95638bfb authored by Steven Murray's avatar Steven Murray
Browse files

Added -Wno-format-overflow to rmc_send_scsi_cmd.c for gcc>=7

parent 677e6e12
Branches
Tags
No related merge requests found
......@@ -27,6 +27,14 @@ set (RMCD_SRC_FILES
rmc_serv.c
rmc_smcsubr.c
)
if(CMAKE_COMPILER_IS_GNUCC)
# Add -Wno-format-overflow compiler flag if using gcc version 7 or greater
if (GCC_VERSION VERSION_EQUAL 7 OR GCC_VERSION VERSION_GREATER 7)
set_property(SOURCE rmc_send_scsi_cmd.c APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-format-overflow")
endif (GCC_VERSION VERSION_EQUAL 7 OR GCC_VERSION VERSION_GREATER 7)
endif(CMAKE_COMPILER_IS_GNUCC)
add_executable(cta-rmcd ${RMCD_SRC_FILES})
target_link_libraries(cta-rmcd ctarmccommon)
install (FILES cta-rmcd.conf DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/cta)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment