mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-06 02:18:00 +02:00
core: ignore unused result warning of audit_log_user_message()
Affects build on rawhide (audit-libs-4.0-8.fc40):
src/core/nm-audit-manager.c: In function 'nm_audit_log':
src/core/nm-audit-manager.c:188:9: error: ignoring return value of 'audit_log_user_message' declared with attribute 'warn_unused_result' [-Werror=unused-result]
188 | audit_log_user_message(priv->auditd_fd,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
189 | AUDIT_USYS_CONFIG,
| ~~~~~~~~~~~~~~~~~~
190 | build_message(&strbuf, BACKEND_AUDITD, fields),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
191 | NULL,
| ~~~~~
192 | NULL,
| ~~~~~
193 | NULL,
| ~~~~~
194 | success);
| ~~~~~~~~
86bfa9bf4f
(cherry picked from commit ced0cf8005)
(cherry picked from commit 52ab487fd6)
This commit is contained in:
parent
fb2dc25787
commit
09340c75c4
1 changed files with 10 additions and 7 deletions
|
|
@ -185,13 +185,16 @@ nm_audit_log(NMAuditManager *self,
|
||||||
priv = NM_AUDIT_MANAGER_GET_PRIVATE(self);
|
priv = NM_AUDIT_MANAGER_GET_PRIVATE(self);
|
||||||
|
|
||||||
if (priv->auditd_fd >= 0) {
|
if (priv->auditd_fd >= 0) {
|
||||||
audit_log_user_message(priv->auditd_fd,
|
int r;
|
||||||
AUDIT_USYS_CONFIG,
|
|
||||||
build_message(&strbuf, BACKEND_AUDITD, fields),
|
r = audit_log_user_message(priv->auditd_fd,
|
||||||
NULL,
|
AUDIT_USYS_CONFIG,
|
||||||
NULL,
|
build_message(&strbuf, BACKEND_AUDITD, fields),
|
||||||
NULL,
|
NULL,
|
||||||
success);
|
NULL,
|
||||||
|
NULL,
|
||||||
|
success);
|
||||||
|
(void) r;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue