Silence a false positive compiler warning

This commit is contained in:
Linus Dierheimer
2022-01-12 01:21:36 +01:00
parent 33127388f0
commit 8639e59019
+1
View File
@@ -49,6 +49,7 @@ void ffStrbufEnsureCapacity(FFstrbuf* strbuf, uint32_t capacity)
if(capacity == UINT32_MAX)
{
--capacity; //This is required to silence a gcc compiler warning
fprintf(stderr, "Warning: ffStrbufEnsureCapacity called with UINT32_MAX. Highest allowed value is UINT32_MAX - 1. Exiting.\n");
exit(812);
}