Skip to content

Commit

Permalink
Source: fix many -Wmissing-prototypes warnings by marking functions s…
Browse files Browse the repository at this point in the history
…tatic
  • Loading branch information
seanm committed Oct 25, 2021
1 parent 319944b commit 1cf14f8
Show file tree
Hide file tree
Showing 27 changed files with 200 additions and 182 deletions.
2 changes: 1 addition & 1 deletion Source/CTest/cmCTestCoverageHandler.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ void cmCTestCoverageHandler::PopulateCustomVectors(cmMakefile* mf)
# define fnc_prefix(s, t) cmHasPrefix(s, t)
#endif

bool IsFileInDir(const std::string& infile, const std::string& indir)
static bool IsFileInDir(const std::string& infile, const std::string& indir)
{
std::string file = cmSystemTools::CollapseFullPath(infile);
std::string dir = cmSystemTools::CollapseFullPath(indir);
Expand Down
2 changes: 1 addition & 1 deletion Source/CursesDialog/ccmake.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ cmCursesForm* cmCursesForm::CurrentForm = nullptr;

extern "C" {

void onsig(int /*unused*/)
static void onsig(int /*unused*/)
{
if (cmCursesForm::CurrentForm) {
endwin();
Expand Down
12 changes: 6 additions & 6 deletions Source/bindexplib.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,9 @@ class DumpSymbols
};
#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
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion Source/cmBase32.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ inline unsigned char Base32EncodeChar(int schar)
return Base32EncodeTable[schar];
}

void Base32Encode5(const unsigned char src[5], char dst[8])
static void Base32Encode5(const unsigned char src[5], char dst[8])
{
// [0]:5 bits
dst[0] = Base32EncodeChar((src[0] >> 3) & 0x1F);
Expand Down
Loading

0 comments on commit 1cf14f8

Please sign in to comment.