C++: Silence two more QL compiler warnings

One was for an unused parameter (a deliberate CP of `Type` x
`VoidType`), and one was for use of a deprecated predicate.
This commit is contained in:
Jonas Jensen
2018-09-03 13:44:33 +02:00
parent ab6dc1d70c
commit 88f80e4d4b
2 changed files with 3 additions and 1 deletions

View File

@@ -128,6 +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
result instanceof VoidType // stub implementation
}

View File

@@ -83,7 +83,8 @@ class PrintableFunctionIR extends PrintableIRNode, TPrintableFunctionIR {
override int getOrder() {
this = rank[result + 1](PrintableFunctionIR orderedFunc, Location location |
location = orderedFunc.getFunctionIR().getLocation() |
orderedFunc order by location.getFile().getURL(), location.getStartLine(),
orderedFunc order by location.getFile().getAbsolutePath(),
location.getStartLine(),
location.getStartColumn(), orderedFunc.getLabel()
)
}