mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
clang compile\warning fixes
This commit is contained in:
parent
0baa261dfc
commit
0d3ec3c6da
4
Global.h
4
Global.h
@ -40,12 +40,12 @@ static_assert(sizeof(bool) == 1, "Bool needs to be 1 byte in size.");
|
||||
#endif
|
||||
|
||||
//nullptr - only msvc and gcc-4.6 or later, othervice define it as NULL
|
||||
#if !defined(_MSC_VER) && !(defined(__GNUC__) && (GCC_VERSION >= 460))
|
||||
#if !defined(_MSC_VER) && !(defined(__GNUC__) && (GCC_VERSION >= 460)) && !(defined(__clang__))
|
||||
#define nullptr NULL
|
||||
#endif
|
||||
|
||||
//override keyword - only msvc and gcc-4.7 or later.
|
||||
#if !defined(_MSC_VER) && !(defined(__GNUC__) && (GCC_VERSION >= 470))
|
||||
#if !defined(_MSC_VER) && !(defined(__GNUC__) && (GCC_VERSION >= 470)) && !(defined(__clang__))
|
||||
#define override
|
||||
#endif
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include "CLogFormatter.h"
|
||||
#include "CConsoleHandler.h"
|
||||
|
||||
class LogRecord;
|
||||
struct LogRecord;
|
||||
|
||||
/**
|
||||
* The color mapping maps a logger name and a level to a specific color.
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
class LogRecord;
|
||||
struct LogRecord;
|
||||
|
||||
/**
|
||||
* The log formatter formats log records.
|
||||
|
@ -12,7 +12,7 @@
|
||||
#pragma once
|
||||
|
||||
class CGLogger;
|
||||
class LogRecord;
|
||||
struct LogRecord;
|
||||
class ILogTarget;
|
||||
|
||||
namespace ELogLevel
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
class LogRecord;
|
||||
struct LogRecord;
|
||||
|
||||
/**
|
||||
* The interface log target is used by all log target implementations. It holds
|
||||
|
Loading…
Reference in New Issue
Block a user