diff options
| author | hachem <im@hachem.wtf> | 2026-08-24 19:07:35 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-24 19:07:35 +0200 |
| commit | 0158611e08cebd24518b1439904905d5dacbdf35 (patch) | |
| tree | e2f16d43952fed5c30532c1f4f1fb04d4ca581d2 /src/platform | |
| parent | a34c49f103c8950a57687ea3d866c244d95b4414 (diff) | |
[chore]: -Wall -Wextra -Werror -pedantic
Diffstat (limited to 'src/platform')
| -rw-r--r-- | src/platform/opengl/shader.cpp | 2 | ||||
| -rw-r--r-- | src/platform/opengl/texture.cpp | 2 |
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"); } |
