mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Silence a false positive compiler warning
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user