summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2021-10-21 16:40:51 (GMT)
committerSean McBride <sean@rogue-research.com>2021-10-25 16:27:10 (GMT)
commit8d671dd94c44e8b11b4619da8f3985835bcdaa66 (patch)
treebb9a22a3b68036898e60efc27d792dea830a1092 /Source
parent1cf14f8c03be76f39e60ccad5049a6f2cd00aa04 (diff)
downloadCMake-8d671dd94c44e8b11b4619da8f3985835bcdaa66.zip
CMake-8d671dd94c44e8b11b4619da8f3985835bcdaa66.tar.gz
CMake-8d671dd94c44e8b11b4619da8f3985835bcdaa66.tar.bz2
Source: fix more -Wmissing-prototypes warnings
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/cmCTestBZR.cxx6
-rw-r--r--Source/cmELF.cxx3
-rw-r--r--Source/cmGeneratorExpressionNode.cxx3
-rw-r--r--Source/cmLoadCommandCommand.cxx1
4 files changed, 6 insertions, 7 deletions
diff --git a/Source/CTest/cmCTestBZR.cxx b/Source/CTest/cmCTestBZR.cxx
index a353435..0fe4ff4 100644
--- a/Source/CTest/cmCTestBZR.cxx
+++ b/Source/CTest/cmCTestBZR.cxx
@@ -20,9 +20,9 @@
#include "cmSystemTools.h"
#include "cmXMLParser.h"
-extern "C" int cmBZRXMLParserUnknownEncodingHandler(void* /*unused*/,
- const XML_Char* name,
- XML_Encoding* info)
+static int cmBZRXMLParserUnknownEncodingHandler(void* /*unused*/,
+ const XML_Char* name,
+ XML_Encoding* info)
{
static const int latin1[] = {
0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008,
diff --git a/Source/cmELF.cxx b/Source/cmELF.cxx
index 843ea97..66f1733 100644
--- a/Source/cmELF.cxx
+++ b/Source/cmELF.cxx
@@ -26,9 +26,6 @@ template <size_t s>
struct cmELFByteSwapSize
{
};
-void cmELFByteSwap(char* /*unused*/, cmELFByteSwapSize<1> /*unused*/)
-{
-}
static void cmELFByteSwap(char* data, cmELFByteSwapSize<2> /*unused*/)
{
char one_byte;
diff --git a/Source/cmGeneratorExpressionNode.cxx b/Source/cmGeneratorExpressionNode.cxx
index fda088c..396e9c9 100644
--- a/Source/cmGeneratorExpressionNode.cxx
+++ b/Source/cmGeneratorExpressionNode.cxx
@@ -814,7 +814,8 @@ struct PlatformIdNode : public cmGeneratorExpressionNode
}
return "0";
}
-} platformIdNode;
+};
+static struct PlatformIdNode platformIdNode;
template <cmSystemTools::CompareOp Op>
struct VersionNode : public cmGeneratorExpressionNode
diff --git a/Source/cmLoadCommandCommand.cxx b/Source/cmLoadCommandCommand.cxx
index 2456db9..2080b40 100644
--- a/Source/cmLoadCommandCommand.cxx
+++ b/Source/cmLoadCommandCommand.cxx
@@ -44,6 +44,7 @@ namespace {
const char* LastName = nullptr;
+extern "C" void TrapsForSignals(int sig);
extern "C" void TrapsForSignals(int sig)
{
fprintf(stderr, "CMake loaded command %s crashed with signal: %d.\n",