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(-) diff --git a/BaseTools/Plugin/CodeQL/CodeQlQueries.qls b/BaseTools/Plugin/CodeQL/CodeQlQueries.qls index 1a50983..34fa6b3 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. -- cgit v1.1