GCC 7 and newer are smart enough to realize that in test_snprintf() the output will not fit in 0 or 4 bytes, but that it requires 9. So it throws a warning in compile time. But in this case we are actually testing that snprintf's return value is what it should be while truncating the output. So let's suppress this warning here. Fixes: #5732 Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com> |
||
|---|---|---|
| .. | ||
| base64 | ||
| c_lib | ||
| json | ||
| rbtree | ||
| ringbuffer | ||
| sprintf | ||