summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kubacki <michael.kubacki@microsoft.com>2024-07-12 19:29:22 -0400
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-07-16 04:04:33 +0000
commit1bb9f47739ae7993191a36bea76c5a2157fdd10f (patch)
tree92931c8a21b3439bf0467c8bb52fc3faff34766c
parent8e6ba0dcae40bfd4c191b2cd47e08f38186513d1 (diff)
downloadedk2-1bb9f47739ae7993191a36bea76c5a2157fdd10f.tar.gz
edk2-1bb9f47739ae7993191a36bea76c5a2157fdd10f.tar.bz2
edk2-1bb9f47739ae7993191a36bea76c5a2157fdd10f.zip
BaseTools/CodeQL: Removed unused static function query
This query seems to produce a rate of false positives with some common patterns in edk2 like passing function pointers for callback. Due to the usage of `STATIC` instead of `static` particularly for functions, this query was rarely used in the past. It is removed here to prevent future false positives. Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
-rw-r--r--BaseTools/Plugin/CodeQL/CodeQlQueries.qls2
1 files changed, 0 insertions, 2 deletions
diff --git a/BaseTools/Plugin/CodeQL/CodeQlQueries.qls b/BaseTools/Plugin/CodeQL/CodeQlQueries.qls
index 1a50983221..34fa6b3665 100644
--- a/BaseTools/Plugin/CodeQL/CodeQlQueries.qls
+++ b/BaseTools/Plugin/CodeQL/CodeQlQueries.qls
@@ -70,8 +70,6 @@
- include:
id: cpp/unused-local-variable
- include:
- id: cpp/unused-static-function
-- include:
id: cpp/unused-static-variable
# Note: Some queries above are not active by default with the below filter.