]> git.ipfire.org Git - thirdparty/systemd.git/commit
libseccomp: fix build error
authorMatteo Croce <teknoraver@meta.com>
Thu, 25 Sep 2025 19:48:26 +0000 (21:48 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 25 Sep 2025 22:19:29 +0000 (07:19 +0900)
commitba8801a07640205778c5a62539597c68d7bdb211
treeb7d54084aa917054ef9dd115609e0861bb97287b
parent3b6288f6becf0e55da6de9ff55e824c2ada93f2c
libseccomp: fix build error

When HAVE_SECCOMP is not set, a build error happens:

../src/analyze/analyze-security.c: In function ‘get_security_info’:
../src/analyze/analyze-security.c:2449:13: error: unused variable ‘r’ [-Werror=unused-variable]
 2449 |         int r;
      |             ^
cc1: some warnings being treated as errors

Fix it by removing the sometimes unused variable.
src/analyze/analyze-security.c