diff options
author | Michael Kubacki <michael.kubacki@microsoft.com> | 2024-07-12 19:29:22 -0400 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-07-16 04:04:33 +0000 |
commit | 1bb9f47739ae7993191a36bea76c5a2157fdd10f (patch) | |
tree | 92931c8a21b3439bf0467c8bb52fc3faff34766c /BaseTools | |
parent | 8e6ba0dcae40bfd4c191b2cd47e08f38186513d1 (diff) | |
download | edk2-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>
Diffstat (limited to 'BaseTools')
-rw-r--r-- | BaseTools/Plugin/CodeQL/CodeQlQueries.qls | 2 |
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.
|