Fixed compiler warnings.
This commit is contained in:
parent
74f1ab866b
commit
b75e1b8a23
9 changed files with 22 additions and 17 deletions
|
|
@ -10,11 +10,11 @@
|
|||
#include <crlib/cr-memory.h>
|
||||
#include <crlib/cr-platform.h>
|
||||
|
||||
void *operator new (size_t size) noexcept {
|
||||
void *operator new (size_t size) {
|
||||
return cr::Memory::get <void *> (size);
|
||||
}
|
||||
|
||||
void *operator new [] (size_t size) noexcept {
|
||||
void *operator new [] (size_t size) {
|
||||
return cr::Memory::get <void *> (size);
|
||||
}
|
||||
|
||||
|
|
@ -36,4 +36,4 @@ void operator delete [] (void *ptr, size_t) noexcept {
|
|||
|
||||
CR_LINKAGE_C void __cxa_pure_virtual () {
|
||||
cr::plat.abort ("pure virtual function call");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -142,8 +142,8 @@ CR_NAMESPACE_BEGIN
|
|||
|
||||
// helper struct for platform detection
|
||||
struct Platform : public Singleton <Platform> {
|
||||
bool win32 = false;
|
||||
bool linux = false;
|
||||
bool win = false;
|
||||
bool nix = false;
|
||||
bool osx = false;
|
||||
bool android = false;
|
||||
bool hfp = false;
|
||||
|
|
@ -154,7 +154,7 @@ struct Platform : public Singleton <Platform> {
|
|||
|
||||
Platform () {
|
||||
#if defined(CR_WINDOWS)
|
||||
win32 = true;
|
||||
win = true;
|
||||
#endif
|
||||
|
||||
#if defined(CR_ANDROID)
|
||||
|
|
@ -166,7 +166,7 @@ struct Platform : public Singleton <Platform> {
|
|||
#endif
|
||||
|
||||
#if defined(CR_LINUX)
|
||||
linux = true;
|
||||
nix = true;
|
||||
#endif
|
||||
|
||||
#if defined(CR_OSX)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue