aboutsummaryrefslogtreecommitdiff
path: root/src/platform
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform')
-rw-r--r--src/platform/opengl/shader.cpp2
-rw-r--r--src/platform/opengl/texture.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/platform/opengl/shader.cpp b/src/platform/opengl/shader.cpp
index 757382b..a56a1b7 100644
--- a/src/platform/opengl/shader.cpp
+++ b/src/platform/opengl/shader.cpp
@@ -85,7 +85,7 @@ namespace Donut
{
in.seekg(0, std::ios::end);
size_t size = in.tellg();
- if (size != -1)
+ if (size != static_cast<size_t>(-1))
{
result.resize(size);
in.seekg(0, std::ios::beg);
diff --git a/src/platform/opengl/texture.cpp b/src/platform/opengl/texture.cpp
index d2d2233..5036ca6 100644
--- a/src/platform/opengl/texture.cpp
+++ b/src/platform/opengl/texture.cpp
@@ -255,7 +255,7 @@ namespace Donut
glDeleteRenderbuffers(1, &capture_rbo);
}
- auto CubemapTexture::set_data(void* data, uint32_t size) -> void
+ auto CubemapTexture::set_data(void* /*data*/, uint32_t /*size*/) -> void
{
DONUT_WARN("set_data not implemented for cubemaps");
}