coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] maint: convert remove a K&R declaration


From: Collin Funk
Subject: [PATCH] maint: convert remove a K&R declaration
Date: Sun, 16 Nov 2025 17:08:43 -0800

This function is hidden unless EVAL_TRACE is defined for debugging.

* src/expr.c (trace): Convert to a prototype instead of K&R definition
to avoid -Werror=strict-prototypes. Make the argument const to avoid
-Werror=discarded-qualifiers.
---
 src/expr.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/expr.c b/src/expr.c
index 17a1ddd29..980f8e518 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -552,8 +552,7 @@ require_more_args (void)
 /* Print evaluation trace and args remaining.  */
 
 static void
-trace (fxn)
-     char *fxn;
+trace (char const *fxn)
 {
   char **a;
 
-- 
2.51.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]