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 <lars.knoll@nokia.com>
This commit is contained in:
parent
9596f591b6
commit
049157f4f1
@ -3032,8 +3032,8 @@ void instantiateContainer()
|
|||||||
container.isEmpty();
|
container.isEmpty();
|
||||||
container.size();
|
container.size();
|
||||||
|
|
||||||
container != constContainer;
|
Q_UNUSED((container != constContainer));
|
||||||
container == constContainer;
|
Q_UNUSED((container == constContainer));
|
||||||
container = constContainer;
|
container = constContainer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3097,8 +3097,8 @@ void instantiateAssociative()
|
|||||||
container.intersect(constContainer);
|
container.intersect(constContainer);
|
||||||
container.subtract(constContainer);
|
container.subtract(constContainer);
|
||||||
|
|
||||||
container != constContainer;
|
Q_UNUSED((container != constContainer));
|
||||||
container == constContainer;
|
Q_UNUSED((container == constContainer));
|
||||||
container & constContainer;
|
container & constContainer;
|
||||||
container &= constContainer;
|
container &= constContainer;
|
||||||
container &= value;
|
container &= value;
|
||||||
|
Loading…
Reference in New Issue
Block a user