From 1e35687d64eb190dd6cc782ef44d5e8551928ab2 Mon Sep 17 00:00:00 2001 From: ArthurSonzogni Date: Sat, 15 Feb 2020 20:41:44 +0100 Subject: [PATCH] Make FTXUI compatible with clang warnings. --- CMakeLists.txt | 3 +-- include/ftxui/dom/take_any_args.hpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a16fa44..6cd4f95 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,8 +65,7 @@ add_library(ftxui::dom ALIAS dom) add_library(ftxui::component ALIAS component) target_link_libraries(dom PUBLIC screen) -target_link_libraries(component PUBLIC dom) -target_link_libraries(component PUBLIC Threads::Threads) +target_link_libraries(component PUBLIC dom Threads::Threads) foreach(lib screen dom component) target_include_directories(${lib} diff --git a/include/ftxui/dom/take_any_args.hpp b/include/ftxui/dom/take_any_args.hpp index 6c80620..eb74613 100644 --- a/include/ftxui/dom/take_any_args.hpp +++ b/include/ftxui/dom/take_any_args.hpp @@ -1,7 +1,7 @@ #include template -void Merge(Elements& container, T t) {} +void Merge(Elements&, T) {} template <> inline void Merge(Elements& container, Element element) {