From 048cb38cd04a055d8b0702430513ba8e6746a257 Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 9 Jan 2023 10:36:18 +0000 Subject: [PATCH] Supress a warning building Flite --- 3rdparty/flite_hts_engine/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/3rdparty/flite_hts_engine/CMakeLists.txt b/3rdparty/flite_hts_engine/CMakeLists.txt index fe99e39bb..d8ac9f6ce 100644 --- a/3rdparty/flite_hts_engine/CMakeLists.txt +++ b/3rdparty/flite_hts_engine/CMakeLists.txt @@ -75,6 +75,10 @@ if (X86_64) target_compile_definitions(flightgear_flite_hts PRIVATE -DSIZEOF_VOID_P=8) endif() +if (NOT MSVC) + target_compile_options(flightgear_flite_hts PRIVATE -Wno-unused-function ) +endif() + # link against HTSEngine: either our own one, or the system one target_link_libraries(flightgear_flite_hts PUBLIC Flightgear::HTSEngine)