summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorWouter Klouwen <wouter.klouwen@youview.com>2020-04-27 19:05:21 (GMT)
committerWouter Klouwen <wouter.klouwen@youview.com>2020-05-01 11:54:21 (GMT)
commit1b4ab323fd620bdc81c6e4546ebaedd731b3255c (patch)
tree1c0d40b4597e7c6a916de21cce4f06b49509600e /Source/cmakemain.cxx
parentc09efe074d793203ab846e97bde8d03e4714dc2a (diff)
downloadCMake-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/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index 84d0538..2828116 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -318,6 +318,7 @@ int do_cmake(int ac, char const* const* av)
return 0;
}
+#ifndef CMAKE_BOOTSTRAP
int extract_job_number(int& index, char const* current, char const* next,
int len_of_flag)
{
@@ -347,6 +348,7 @@ int extract_job_number(int& index, char const* current, char const* next,
}
return jobs;
}
+#endif
int do_build(int ac, char const* const* av)
{