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:
@@ -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,
|
||||
|
@@ -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;
|
||||
|
@@ -814,7 +814,8 @@ struct PlatformIdNode : public cmGeneratorExpressionNode
|
||||
}
|
||||
return "0";
|
||||
}
|
||||
} platformIdNode;
|
||||
};
|
||||
static struct PlatformIdNode platformIdNode;
|
||||
|
||||
template <cmSystemTools::CompareOp Op>
|
||||
struct VersionNode : public cmGeneratorExpressionNode
|
||||
|
@@ -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",
|
||||
|
Reference in New Issue
Block a user