opnsense-src/share/examples/tests/tests
Dimitry Andric 29b3ac60ae Silence snprintf truncation warnings in printf_test examples
Building share/examples/tests with clang 18 results in a few warnings
like:

  share/examples/tests/tests/plain/printf_test.c:67:6: error: 'snprintf' will always be truncated; specified size is 10, but format string expands to at least 17 [-Werror,-Wformat-truncation]
     67 |         if (snprintf(buffer, sizeof(buffer), "0123456789abcdef") != 16)
        |             ^

Since these tests are meant as an example of testing snprintf overflow,
suppress the warnings.

MFC after:	3 days

(cherry picked from commit 69c8025a498450b6bc4cc9e97ba779ed1c2e7f4b)
2023-12-24 14:59:21 +01:00
..
atf Silence snprintf truncation warnings in printf_test examples 2023-12-24 14:59:21 +01:00
googletest Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
plain Silence snprintf truncation warnings in printf_test examples 2023-12-24 14:59:21 +01:00
tap Silence snprintf truncation warnings in printf_test examples 2023-12-24 14:59:21 +01:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00