Merge pull request 'disable -Wformat-truncation error' (#223) from mueller/disable-warning-in-csp-lib into develop
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
Reviewed-on: #223 Reviewed-by: Jakob.Meier <meierj@irs.uni-stuttgart.de>
This commit is contained in:
commit
b40ceafbe0
3
thirdparty/libcsp/src/csp_iflist.c
vendored
3
thirdparty/libcsp/src/csp_iflist.c
vendored
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user