Fixed compiler warnings.

This commit is contained in:
jeefo 2020-11-23 10:48:44 +03:00
commit b75e1b8a23
9 changed files with 22 additions and 17 deletions

View file

@ -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");
}
}

View file

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