]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: convert remove a K&R declaration
authorCollin Funk <collin.funk1@gmail.com>
Mon, 17 Nov 2025 00:59:43 +0000 (16:59 -0800)
committerCollin Funk <collin.funk1@gmail.com>
Mon, 17 Nov 2025 00:59:43 +0000 (16:59 -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

index 17a1ddd299f2260a5bc0a2f60d904e298f8b1a2a..980f8e51882a92425643589d3b5abfa4037c71e3 100644 (file)
@@ -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;