aboutsummaryrefslogtreecommitdiff
path: root/sokol_gfx.h
diff options
context:
space:
mode:
authorDaniel Ludwig <codi@code-disaster.com>2019-02-20 17:38:25 +0100
committerDaniel Ludwig <codi@code-disaster.com>2019-02-20 17:38:25 +0100
commit1f52a34ce660b7ced7fb8c4d7da572b01e6795d0 (patch)
treecc960eb3592efdc4b3dd388ca0f380fa459b0fe3 /sokol_gfx.h
parent3fa7c3ae3793d61aa6c7d29ef5a3848507cde3fe (diff)
sokol_gfx.h: fix msvc release build warnings when compiled with /W4
Diffstat (limited to 'sokol_gfx.h')
-rw-r--r--sokol_gfx.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h
index 7a215b70..bb2c31b1 100644
--- a/sokol_gfx.h
+++ b/sokol_gfx.h
@@ -3592,6 +3592,7 @@ _SOKOL_PRIVATE void _sg_setup_backend(const sg_desc* desc) {
#if defined(SOKOL_GLES2) || defined(SOKOL_GLES3)
_sg.gl.gles2 = desc->gl_force_gles2;
#else
+ _SOKOL_UNUSED(desc);
_sg.gl.gles2 = false;
#endif
@@ -5381,11 +5382,13 @@ _SOKOL_PRIVATE void _sg_activate_context(_sg_context_t* ctx) {
_SOKOL_PRIVATE sg_resource_state _sg_create_context(_sg_context_t* ctx) {
SOKOL_ASSERT(ctx);
+ _SOKOL_UNUSED(ctx);
return SG_RESOURCESTATE_VALID;
}
_SOKOL_PRIVATE void _sg_destroy_context(_sg_context_t* ctx) {
SOKOL_ASSERT(ctx);
+ _SOKOL_UNUSED(ctx);
/* empty */
}