summaryrefslogtreecommitdiff
path: root/Source/bindexplib.cxx
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2021-10-18 10:01:05 -0400
committerSean McBride <sean@rogue-research.com>2021-10-25 12:27:09 -0400
commit1cf14f8c03be76f39e60ccad5049a6f2cd00aa04 (patch)
tree1cdcd647478e605952ddf4e1f1591715384e3c2c /Source/bindexplib.cxx
parent319944b3d289871c4cd21ee11aba1f5785d4b626 (diff)
downloadcmake-1cf14f8c03be76f39e60ccad5049a6f2cd00aa04.tar.gz
Source: fix many -Wmissing-prototypes warnings by marking functions static
Diffstat (limited to 'Source/bindexplib.cxx')
-rw-r--r--Source/bindexplib.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/bindexplib.cxx b/Source/bindexplib.cxx
index 0dc954aa47..017fdc087b 100644
--- a/Source/bindexplib.cxx
+++ b/Source/bindexplib.cxx
@@ -320,9 +320,9 @@ private:
};
#endif
-bool DumpFileWithLlvmNm(std::string const& nmPath, const char* filename,
- std::set<std::string>& symbols,
- std::set<std::string>& dataSymbols)
+static bool DumpFileWithLlvmNm(std::string const& nmPath, const char* filename,
+ std::set<std::string>& symbols,
+ std::set<std::string>& dataSymbols)
{
std::string output;
// break up command line into a vector
@@ -375,9 +375,9 @@ bool DumpFileWithLlvmNm(std::string const& nmPath, const char* filename,
return true;
}
-bool DumpFile(std::string const& nmPath, const char* filename,
- std::set<std::string>& symbols,
- std::set<std::string>& dataSymbols)
+static bool DumpFile(std::string const& nmPath, const char* filename,
+ std::set<std::string>& symbols,
+ std::set<std::string>& dataSymbols)
{
#ifndef _WIN32
return DumpFileWithLlvmNm(nmPath, filename, symbols, dataSymbols);