From ff0a33064261b91ae598d264482c13b4e6788568 Mon Sep 17 00:00:00 2001 From: Michael Kubacki Date: Thu, 25 Jul 2024 14:44:59 -0400 Subject: [PATCH] BaseTools/MuCodeQlQueries.qls: Removed unused static function query This is the Project Mu equivalent of the following edk2 commit: 1bb9f47 --- 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/MuCodeQlQueries.qls | 2 -- 1 file changed, 2 deletions(-) diff --git a/BaseTools/Plugin/CodeQL/MuCodeQlQueries.qls b/BaseTools/Plugin/CodeQL/MuCodeQlQueries.qls index 43819789d6..4af6adca6a 100644 --- a/BaseTools/Plugin/CodeQL/MuCodeQlQueries.qls +++ b/BaseTools/Plugin/CodeQL/MuCodeQlQueries.qls @@ -86,8 +86,6 @@ id: cpp/missing-header-guard - include: id: cpp/unused-local-variable -- include: - id: cpp/unused-static-function - include: id: cpp/unused-static-variable