github / github/codeql

LGTM.com - false positive - unused static function

Ouverte
#10,442 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
C++ false-positive
Langage dominant
CodeQL
Étoiles
10.1k
Forks
2.1k
Merge moyen
2 j 15 h
PR mergées (30 j)
141

Description

**Description of the false positive**

The alert is "Static function IsTypeProtoCompatible is unreachable". [Help for that alert](https://lgtm.com/rules/2152580467/) indicates that it is about an unused static function.

However, that function is actually used later in the file:
https://lgtm.com/projects/g/microsoft/onnxruntime/snapshot/b7c967a8110811599816346da0294ee681c6cb74/files/onnxruntime/core/framework/kernel_registry.cc?sort=name&dir=ASC&mode=heatmap#L85

**URL to the alert on the project page on LGTM.com**

https://lgtm.com/projects/g/microsoft/onnxruntime/snapshot/b7c967a8110811599816346da0294ee681c6cb74/files/onnxruntime/core/framework/kernel_registry.cc?sort=name&dir=ASC&mode=heatmap#x35f8eff849669b65:1

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.