From 049157f4f121d91b8702f998511a90a1adf0b71e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Abecasis?= Date: Thu, 22 Mar 2012 01:22:41 +0100 Subject: [PATCH] Silence unused comparison result warnings (clang) The intent is to force instantiation of template container classes and semantics or behaviour are otherwise irrelevant in this context. tst_collections.cpp:3036:15: warning: inequality comparison result unused tst_collections.cpp:3037:15: warning: equality comparison result unused tst_collections.cpp:3100:15: warning: inequality comparison result unused tst_collections.cpp:3101:15: warning: equality comparison result unused Change-Id: I70ad38b18dcbc43879e36a34b1da460aee5f7b07 Reviewed-by: Lars Knoll --- tests/auto/other/collections/tst_collections.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/auto/other/collections/tst_collections.cpp b/tests/auto/other/collections/tst_collections.cpp index 973938594f..d4d70b5c36 100644 --- a/tests/auto/other/collections/tst_collections.cpp +++ b/tests/auto/other/collections/tst_collections.cpp @@ -3032,8 +3032,8 @@ void instantiateContainer() container.isEmpty(); container.size(); - container != constContainer; - container == constContainer; + Q_UNUSED((container != constContainer)); + Q_UNUSED((container == constContainer)); container = constContainer; } @@ -3097,8 +3097,8 @@ void instantiateAssociative() container.intersect(constContainer); container.subtract(constContainer); - container != constContainer; - container == constContainer; + Q_UNUSED((container != constContainer)); + Q_UNUSED((container == constContainer)); container & constContainer; container &= constContainer; container &= value;