[PATCH v2 1/9] cocci rules: remove unused "F" metavariable from pending rule
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Aug 31, 2022, 20:57 UTC
- Message-ID
- <patch-v2-1.9-72b6a8e4e0b-20220831T205130Z-avarab@gmail.com>
- In-Reply-To
- <cover-v2-0.9-00000000000-20220831T205130Z-avarab@gmail.com>
Fix an issue with a rule added in 9b45f499818 (object-store: prepare has_{sha1, object}_file to handle any repo, 2018-11-13). We've been spewing out this warning into our $@.log since that rule was added:
warning: rule starting on line 21: metavariable F not used in the - or context code
We should do a better job of scouring our coccinelle log files for such issues, but for now let's fix this as a one-off.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> --- contrib/coccinelle/the_repository.pending.cocci | 1 - 1 file changed, 1 deletion(-)
diff --git a/contrib/coccinelle/the_repository.pending.cocci b/contrib/coccinelle/the_repository.pending.cocci index 072ea0d9228..747d382ff5f 100644 --- a/contrib/coccinelle/the_repository.pending.cocci +++ b/contrib/coccinelle/the_repository.pending.cocci @@ -20,7 +20,6 @@ expression E; @@ expression E; -expression F; @@ - has_object_file_with_flags( + repo_has_object_file_with_flags(the_repository,
-- 2.37.3.1420.g76f8a3d556c