disable -Wformat-truncation error #223

Merged
meierj merged 5 commits from mueller/disable-warning-in-csp-lib into develop 2022-04-28 17:15:07 +02:00

View File

@ -77,7 +77,10 @@ static int csp_bytesize(char *buf, int len, unsigned long int n) {
postfix = 'B';
}
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-truncation"
return snprintf(buf, len, "%.1f%c", size, postfix);
#pragma GCC diagnostic pop
}
void csp_iflist_print(void) {