]> git.ipfire.org Git - thirdparty/systemd.git/commit
install: fix compiler warning about empty directive argument
authorLuca Boccassi <bluca@debian.org>
Sat, 24 Feb 2024 12:05:44 +0000 (12:05 +0000)
committerLuca Boccassi <bluca@debian.org>
Wed, 28 Feb 2024 01:08:56 +0000 (01:08 +0000)
commit8040fa55a1cbc34dede3205a902095ecd26c21e3
tree93688bea74ce11fc41d6832b9fe701660b64feb8
parent47c2a6e958fb146161bfe55fc47bdbcdcae4ffca
install: fix compiler warning about empty directive argument

On ppc64el with gcc 13.2 on Ubuntu 24.04:

3s In file included from ../src/basic/macro.h:386,
483s                  from ../src/basic/alloc-util.h:10,
483s                  from ../src/shared/install.c:12:
483s ../src/shared/install.c: In function ‘install_changes_dump’:
483s ../src/shared/install.c:432:64: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
483s   432 |                         err = log_error_errno(changes[i].type, "Failed to %s unit, unit %s does not exist.",
483s       |                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
483s ../src/shared/install.c:432:75: note: format string is defined here
483s   432 |                         err = log_error_errno(changes[i].type, "Failed to %s unit, unit %s does not exist.",
src/shared/install.c