From: Zbigniew Jędrzejewski-Szmek Date: Wed, 10 Feb 2021 06:49:17 +0000 (+0100) Subject: test-tables: fix warning about NULL used in printf X-Git-Tag: v248-rc1~166^2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b357fe57b2b35f62572f99515a0666954281b49f;p=thirdparty%2Fsystemd.git test-tables: fix warning about NULL used in printf With the simplified asserts, newer gcc is able to (correctly) figure out that NULL was being passed. --- diff --git a/src/shared/test-tables.h b/src/shared/test-tables.h index bb8177b6492..120dc7f2e9f 100644 --- a/src/shared/test-tables.h +++ b/src/shared/test-tables.h @@ -27,7 +27,7 @@ static inline void _test_table(const char *name, } if (boring < 1 || i == size) - printf("%s: %d → %s → %d\n", name, i, val, rev); + printf("%s: %d → %s → %d\n", name, i, strnull(val), rev); else if (boring == 1) printf("%*s ...\n", (int) strlen(name), "");