1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-22 07:25:02 +08:00

Source: fix more -Wmissing-prototypes warnings

This commit is contained in:
Sean McBride
2021-10-21 12:40:51 -04:00
parent 1cf14f8c03
commit 8d671dd94c
4 changed files with 6 additions and 7 deletions

View File

@@ -20,7 +20,7 @@
#include "cmSystemTools.h" #include "cmSystemTools.h"
#include "cmXMLParser.h" #include "cmXMLParser.h"
extern "C" int cmBZRXMLParserUnknownEncodingHandler(void* /*unused*/, static int cmBZRXMLParserUnknownEncodingHandler(void* /*unused*/,
const XML_Char* name, const XML_Char* name,
XML_Encoding* info) XML_Encoding* info)
{ {

View File

@@ -26,9 +26,6 @@ template <size_t s>
struct cmELFByteSwapSize struct cmELFByteSwapSize
{ {
}; };
void cmELFByteSwap(char* /*unused*/, cmELFByteSwapSize<1> /*unused*/)
{
}
static void cmELFByteSwap(char* data, cmELFByteSwapSize<2> /*unused*/) static void cmELFByteSwap(char* data, cmELFByteSwapSize<2> /*unused*/)
{ {
char one_byte; char one_byte;

View File

@@ -814,7 +814,8 @@ struct PlatformIdNode : public cmGeneratorExpressionNode
} }
return "0"; return "0";
} }
} platformIdNode; };
static struct PlatformIdNode platformIdNode;
template <cmSystemTools::CompareOp Op> template <cmSystemTools::CompareOp Op>
struct VersionNode : public cmGeneratorExpressionNode struct VersionNode : public cmGeneratorExpressionNode

View File

@@ -44,6 +44,7 @@ namespace {
const char* LastName = nullptr; const char* LastName = nullptr;
extern "C" void TrapsForSignals(int sig);
extern "C" void TrapsForSignals(int sig) extern "C" void TrapsForSignals(int sig)
{ {
fprintf(stderr, "CMake loaded command %s crashed with signal: %d.\n", fprintf(stderr, "CMake loaded command %s crashed with signal: %d.\n",