git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] coccinelle: delete an unused variable in two rules from the_repository.pending.cocci

From
MEMarkus Elfring <markus.elfring@web.de>
Date
Nov 12, 2019, 20:40 UTC
Message-ID
<22b15b44-2679-6e10-c2f1-458e09a707f3@web.de>
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Tue, 12 Nov 2019 21:35:36 +0100

This script contained two transformation rules for the semantic patch language where a metavariable was declared but not used then. Thus remove this superfluous variable “F”.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 contrib/coccinelle/the_repository.pending.cocci | 2 --
 1 file changed, 2 deletions(-)
diff --git a/contrib/coccinelle/the_repository.pending.cocci b/contrib/coccinelle/the_repository.pending.cocci
index 2ee702ecf7..ff6a6a575a 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_sha1_file_with_flags(
 + repo_has_sha1_file_with_flags(the_repository,
@@ -35,7 +34,6 @@ expression E;

 @@
 expression E;
-expression F;
 @@
 - has_object_file_with_flags(
 + repo_has_object_file_with_flags(the_repository,
--
2.24.0
Message 1 of 1 in “coccinelle: delete an unused variable in two rules from the_repository.pending.cocci”
  1. coccinelle: delete an unused variable in two rules from the_repository.pending.cocciMarkus Elfring, Nov 12, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.