websockets icon indicating copy to clipboard operation
websockets copied to clipboard

Use compatible sprintf format for size_t

Open srubin-nottinghamspirk opened this issue 1 year ago • 0 comments

In test_common.c, sprintf uses the "%i" formatter for a size_t. On certain compilers (i.e. gcc 13.2.0 on my build machine), this causes a warning. In CMakeLists.txt, warnings are set to be errrors (-Werror), so the code will not build. The fix is to use "%zu" for ISO C99 compatibility.

srubin-nottinghamspirk avatar May 24 '24 14:05 srubin-nottinghamspirk