aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/coccinelle
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2022-11-01 23:35:44 +0100
committerTaylor Blau <me@ttaylorr.com>2022-11-02 21:22:15 -0400
commit895ae7ae2a9c5d10ed6ead4766721772b93634b0 (patch)
tree6542924980241269d06a5a1e5966a98eb683733d /contrib/coccinelle
parentc4864e37557f31285b4110bb2286479e15c3d938 (diff)
downloadgit-895ae7ae2a9c5d10ed6ead4766721772b93634b0.tar.gz
cocci rules: remove unused "F" metavariable from pending rule
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> Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 'contrib/coccinelle')
-rw-r--r--contrib/coccinelle/the_repository.pending.cocci1
1 files changed, 0 insertions, 1 deletions
diff --git a/contrib/coccinelle/the_repository.pending.cocci b/contrib/coccinelle/the_repository.pending.cocci
index 072ea0d922..747d382ff5 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,