disable -Wformat-truncation error
EIVE/eive-obsw/pipeline/head This commit looks good Details
EIVE/eive-obsw/pipeline/pr-develop Build queued... Details

This commit is contained in:
Robin Müller 2022-04-21 11:50:47 +02:00
parent 23730349b0
commit 6b08659a69
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
1 changed files with 3 additions and 0 deletions

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) {