diff options
author | kdx <kikoodx@paranoici.org> | 2023-04-26 16:37:11 +0200 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-04-26 16:37:11 +0200 |
commit | 4b3f7c37df52735fdd1da351e58111694623b749 (patch) | |
tree | 6bcfaa3af64d07275fe492308f3b825c39c61957 | |
parent | b86c22881cd2f839fba357988410a8821a3e83dd (diff) | |
download | tzr-4b3f7c37df52735fdd1da351e58111694623b749.tar.gz |
paranoid warnings for DrawSetColor8
-rw-r--r-- | headers/TZR_render.h | 5 |
1 files changed, 5 insertions, 0 deletions
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. */ |