1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-19 19:43:23 +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,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,

View File

@@ -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;

View File

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

View File

@@ -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",