C++: Follow suppressUnusedThis convention

This commit is contained in:
Jonas Jensen
2018-09-04 09:40:50 +02:00
parent 88f80e4d4b
commit 07bacbf389

View File

@@ -128,7 +128,7 @@ predicate readStep(Node node1, Content f, Node node2) {
* numeric conversions, and otherwise the erasure is used.
*/
RefType getErasedRepr(Type t) {
t = t and // silence compiler warning
suppressUnusedThis(t) and
result instanceof VoidType // stub implementation
}
@@ -141,6 +141,8 @@ predicate compatibleTypes(Type t1, Type t2) {
any() // stub implementation
}
private predicate suppressUnusedThis(Type t) { any() }
//////////////////////////////////////////////////////////////////////////////
// Java QL library compatibility wrappers
//////////////////////////////////////////////////////////////////////////////