lib audit_logging: add _WARN_UNUSED_RESULT_
authorGary Lockyer <gary@catalyst.net.nz>
Tue, 24 Jul 2018 03:20:21 +0000 (15:20 +1200)
committerGary Lockyer <gary@samba.org>
Wed, 25 Jul 2018 07:28:31 +0000 (09:28 +0200)
commita5e02f7264a5feb9f0a5bb3d84de0153dc0758a0
tree8ceb813cdf3ead9f408b686488a423ddfc63a6a2
parent6a5346f166ac1a9b03bca76dc40d3645432377df
lib audit_logging: add _WARN_UNUSED_RESULT_

Have the compiler issue a warning when the return code from the API is
ignored.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Gary Lockyer <gary@samba.org>
Autobuild-Date(master): Wed Jul 25 09:28:31 CEST 2018 on sn-devel-144
lib/audit_logging/audit_logging.h
lib/audit_logging/tests/audit_logging_test.c