diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-02-10 07:49:17 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-02-10 14:43:10 +0100 |
commit | b357fe57b2b35f62572f99515a0666954281b49f (patch) | |
tree | 2effedd9521334232c16102e6dfa1a828215c023 /src | |
parent | Merge pull request #18470 from mrc0mmand/ci-clang-12 (diff) | |
download | systemd-b357fe57b2b35f62572f99515a0666954281b49f.tar.xz systemd-b357fe57b2b35f62572f99515a0666954281b49f.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/test-tables.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/test-tables.h b/src/shared/test-tables.h index bb8177b649..120dc7f2e9 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), ""); |