Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: sprintf: suppress Wformat-truncation warning
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: zephyrproject-rtos#5732 Signed-off-by: Alberto Escolar Piedras <[email protected]>
- Loading branch information