[PATCH 02/10] virObjectLockGuard: Require that returned value is used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The returned value is used to unlock the object, so all callers must
necessarily make use of the returned value.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 src/util/virobject.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/virobject.h b/src/util/virobject.h
index a1e16aee77..4b941ac215 100644
--- a/src/util/virobject.h
+++ b/src/util/virobject.h
@@ -120,7 +120,7 @@ virObjectRWLockableNew(virClass *klass)

 virLockGuard
 virObjectLockGuard(void *lockableobj)
-    ATTRIBUTE_NONNULL(1);
+    ATTRIBUTE_NONNULL(1) G_GNUC_WARN_UNUSED_RESULT;

 void
 virObjectLock(void *lockableobj)
-- 
2.35.3




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux