From 4b3f7c37df52735fdd1da351e58111694623b749 Mon Sep 17 00:00:00 2001 From: kdx Date: Wed, 26 Apr 2023 16:37:11 +0200 Subject: paranoid warnings for DrawSetColor8 --- headers/TZR_render.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/headers/TZR_render.h b/headers/TZR_render.h index e9747a7..9cd3128 100644 --- a/headers/TZR_render.h +++ b/headers/TZR_render.h @@ -27,6 +27,11 @@ int TZR_DrawEnd(void); int _TZR_DrawSetColor(const TZR_Color *color); /* Return -1 on error. */ +#ifdef TZR_PARANOID +#if __STDC_VERSION__ > 201710L +[[nodiscard]] +#endif +#endif int TZR_DrawSetColor8(uint8_t r, uint8_t g, uint8_t b, uint8_t a); /* Return -1 on error. */ -- cgit v1.2.3