]> git.ipfire.org Git - thirdparty/systemd.git/commit
tree-wide: fix the string concatenation warning with clang-12
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 8 Feb 2021 10:26:26 +0000 (11:26 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 12 Mar 2021 16:43:55 +0000 (17:43 +0100)
commit6345ef607976ce0311d01a38ee30855f5416ff1f
tree51eed7d2b04553a4f993ce52bc63928322ecfdd5
parentd5ea028e46673ef627843e90c3d01ebac8fe0e62
tree-wide: fix the string concatenation warning with clang-12

e.g.:
./src/shared/dissect-image.c:2218:39: error: suspicious concatenation of string literals in an array initialization; did you mean to separate the elements with a comma? [-Werror,-Wstring-concatenation]
                                      "/usr/lib/os-release\0",
                                      ^
../src/shared/dissect-image.c:2217:39: note: place parentheses around the string literal to silence warning
                [META_OS_RELEASE]   = "/etc/os-release\0"
                                      ^
1 error generated.

See: https://reviews.llvm.org/D85545
(cherry picked from commit 8762049792024df1be9f0b219438220bb9ee547d)
src/shared/dissect-image.c
src/test/test-xdg-autostart.c