diff --git a/Core/Loaders.h b/Core/Loaders.h index 05837433f8..f0e83adab4 100644 --- a/Core/Loaders.h +++ b/Core/Loaders.h @@ -110,6 +110,7 @@ IdentifiedFileType Identify_File(FileLoader *fileLoader); class FileLoaderFactory { public: + virtual ~FileLoaderFactory() {} virtual FileLoader *ConstructFileLoader(const std::string &filename) = 0; }; void RegisterFileLoaderFactory(std::string name, std::unique_ptr factory); diff --git a/ext/native/thin3d/thin3d.cpp b/ext/native/thin3d/thin3d.cpp index 6f4eafb3bf..965c88dc0b 100644 --- a/ext/native/thin3d/thin3d.cpp +++ b/ext/native/thin3d/thin3d.cpp @@ -409,7 +409,7 @@ void ConvertFromRGBA8888(uint8_t *dst, const uint8_t *src, uint32_t dstStride, u case Draw::DataFormat::R8G8B8A8_UNORM: case Draw::DataFormat::UNDEFINED: default: - WARN_LOG_REPORT_ONCE(convFromRGBA, G3D, "Unable to convert from format: %d", format); + WARN_LOG_REPORT_ONCE(convFromRGBA, G3D, "Unable to convert from format: %d", (int)format); break; } }