summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2021-08-22 13:54:04 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2021-08-22 14:02:21 -0700
commita3b63ab67d4952b7b5293d5f0d45a8f9757ca17e (patch)
tree8a1c71da6118a426fd1470e6761354a09ebfc1b9 /src
parent7ec5eb6c97b0a472ae7323a7d59bff9ed6f6abe9 (diff)
downloaddiffutils-a3b63ab67d4952b7b5293d5f0d45a8f9757ca17e.tar.gz
maint: omit unused function if not debugging
* src/util.c (debug_script): Compile only if DEBUG.
Diffstat (limited to 'src')
-rw-r--r--src/util.c2
1 files changed, 2 insertions, 0 deletions
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