Skip to content
Myr

fix clang warnings

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Vincent Isambart · committed by Vincent Isambart · parent 59c3539 · Browse files · 1 file+6 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−6 removed

  • other:+6 added−6 removed

1 file+6 added−6 removed

modified:stb.h+6 added-6 removed
2971 unmodified lines
2972#ifdef STB_DEBUG2973#define stb_arr_check(a) assert(!a || stb_arrhead(a)->signature == stb_arr_signature)2974#define stb_arr_check2(a) assert(!a || stb_arrhead2(a)->signature == stb_arr_signature)2975#else2976#define stb_arr_check(a) 02977#define stb_arr_check2(a) 02976#define stb_arr_check(a) ((void) 0)2977#define stb_arr_check2(a) ((void) 0)2978#endif29792980// ARRAY LENGTH2981
314 unmodified lines
3296}32973298unsigned int stb_rehash_improved(unsigned int v)3299{3300 return stb_hashptr((void *) v);3300 return stb_hashptr((void *)(size_t) v);3301}33023303unsigned int stb_hash2(char *str, unsigned int *hash2_ptr)3304{
7101 unmodified lines
1040610407////////////////////// streaming I/O version /////////////////////104081040910410static stb_uint stb_out_backpatch_id(void)10410static size_t stb_out_backpatch_id(void)10411{10412 if (stb__out)10413 return (stb_uint) stb__out;10413 return (size_t) stb__out;10414 else10415 return ftell(stb__outfile);10416}1041710418static void stb_out_backpatch(stb_uint id, stb_uint value)10418static void stb_out_backpatch(size_t id, stb_uint value)10419{10420 stb_uchar data[4] = { value >> 24, value >> 16, value >> 8, value };10421 if (stb__out) {10422 memcpy((void *) id, data, 4);
3664 unmodified lines