diff options
| author | Andre Weissflog <floooh@gmail.com> | 2020-05-30 14:53:48 +0200 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2020-05-30 14:53:48 +0200 |
| commit | 2b14aa796e7b244cb52223c499261fcded7daed1 (patch) | |
| tree | 09f1df441a01bac9072514202caf8ed078470e6d /util | |
| parent | 48d650f626b7a1b82c51dc4f6f77757baf4d3b69 (diff) | |
fix unused parameter warnings in platform-agnostic and OSX/iOS code paths
Diffstat (limited to 'util')
| -rw-r--r-- | util/sokol_fontstash.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/sokol_fontstash.h b/util/sokol_fontstash.h index 3dfb7010..2b57e9c3 100644 --- a/util/sokol_fontstash.h +++ b/util/sokol_fontstash.h @@ -222,6 +222,9 @@ SOKOL_API_DECL uint32_t sfons_rgba(uint8_t r, uint8_t g, uint8_t b, uint8_t a); #ifndef SOKOL_UNREACHABLE #define SOKOL_UNREACHABLE SOKOL_ASSERT(false) #endif +#ifndef _SOKOL_UNUSED + #define _SOKOL_UNUSED(x) (void)(x) +#endif #if defined(SOKOL_GLCORE33) static const char* _sfons_vs_src = @@ -931,6 +934,8 @@ static int _sfons_render_resize(void* user_ptr, int width, int height) { static void _sfons_render_update(void* user_ptr, int* rect, const unsigned char* data) { SOKOL_ASSERT(user_ptr && rect && data); + _SOKOL_UNUSED(rect); + _SOKOL_UNUSED(data); _sfons_t* sfons = (_sfons_t*) user_ptr; sfons->img_dirty = true; } |