diffutils-devel
[Top][All Lists]
Advanced

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

[PATCH 06/17] maint: omit unused function if not debugging


From: Paul Eggert
Subject: [PATCH 06/17] maint: omit unused function if not debugging
Date: Sun, 22 Aug 2021 14:02:55 -0700

* src/util.c (debug_script): Compile only if DEBUG.
---
 src/util.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/util.c b/src/util.c
index b5efb59..8fd72e5 100644
--- a/src/util.c
+++ b/src/util.c
@@ -1547,6 +1547,7 @@ concat (char const *s1, char const *s2, char const *s3)
   return new;
 }
 
+#ifdef DEBUG
 void
 debug_script (struct change *sp)
 {
@@ -1564,3 +1565,4 @@ debug_script (struct change *sp)
 
   fflush (stderr);
 }
+#endif
-- 
2.31.1




reply via email to

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