From 1bb9f47739ae7993191a36bea76c5a2157fdd10f Mon Sep 17 00:00:00 2001 From: Michael Kubacki Date: Fri, 12 Jul 2024 19:29:22 -0400 Subject: 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 --- BaseTools/Plugin/CodeQL/CodeQlQueries.qls | 2 -- 1 file changed, 2 deletions(-) (limited to 'BaseTools') 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 @@ -69,8 +69,6 @@ id: cpp/missing-header-guard - include: id: cpp/unused-local-variable -- include: - id: cpp/unused-static-function - include: id: cpp/unused-static-variable -- cgit v1.2.3