ATM: fix compiler warnings about unused variables

This commit is contained in:
Erik Krogh Kristensen
2022-04-20 18:10:15 +02:00
parent 4bc36d82f6
commit 81ce8ac715
3 changed files with 3 additions and 2 deletions

View File

@@ -118,6 +118,7 @@ class EndpointScoringResults extends ScoringResults {
pragma[inline]
override predicate shouldResultBeIncluded(DataFlow::Node source, DataFlow::Node sink) {
exists(source) and
if getCfg().isKnownSink(sink)
then any()
else (

View File

@@ -125,6 +125,6 @@ class BarrierGuardNodeAsSanitizerGuardNode extends TaintTracking::LabeledSanitiz
}
override predicate sanitizes(boolean outcome, Expr e, DataFlow::FlowLabel label) {
sanitizes(outcome, e)
sanitizes(outcome, e) and exists(label)
}
}

View File

@@ -193,7 +193,7 @@ module FlowFromSource {
/** The sinks are the endpoints we're extracting. */
override predicate isSink(DataFlow::Node sink, DataFlow::FlowLabel lbl) {
sink = getAnEndpoint(q)
sink = getAnEndpoint(q) and exists(lbl)
}
}
}