diff options
author | Wouter Klouwen <wouter.klouwen@youview.com> | 2020-04-27 19:05:21 (GMT) |
---|---|---|
committer | Wouter Klouwen <wouter.klouwen@youview.com> | 2020-05-01 11:54:21 (GMT) |
commit | 1b4ab323fd620bdc81c6e4546ebaedd731b3255c (patch) | |
tree | 1c0d40b4597e7c6a916de21cce4f06b49509600e /Source/cmake.cxx | |
parent | c09efe074d793203ab846e97bde8d03e4714dc2a (diff) | |
download | CMake-1b4ab323fd620bdc81c6e4546ebaedd731b3255c.zip CMake-1b4ab323fd620bdc81c6e4546ebaedd731b3255c.tar.gz CMake-1b4ab323fd620bdc81c6e4546ebaedd731b3255c.tar.bz2 |
Fix build warnings for unused functions
This commit addresses two sources of build errors when using the warning
flag -Werror=unused-function for GCC in the default compiler flags.
The affected functions are not used when building in bootstrap
mode and therefore should be ifdefed out.
No functional changes.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index c619e1e..d81f975 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -138,6 +138,7 @@ using JsonValueMapType = std::unordered_map<std::string, Json::Value>; static bool cmakeCheckStampFile(const std::string& stampName); static bool cmakeCheckStampList(const std::string& stampList); +#ifndef CMAKE_BOOTSTRAP static void cmWarnUnusedCliWarning(const std::string& variable, int /*unused*/, void* ctx, const char* /*unused*/, const cmMakefile* /*unused*/) @@ -145,6 +146,7 @@ static void cmWarnUnusedCliWarning(const std::string& variable, int /*unused*/, cmake* cm = reinterpret_cast<cmake*>(ctx); cm->MarkCliAsUsed(variable); } +#endif cmake::cmake(Role role, cmState::Mode mode) : FileTimeCache(cm::make_unique<cmFileTimeCache>()) |