[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
- [PATCH 01/17] build: update gnulib submodule to latest, Paul Eggert, 2021/08/22
- [PATCH 06/17] maint: omit unused function if not debugging,
Paul Eggert <=
- [PATCH 12/17] diff3: simplify process_diff, Paul Eggert, 2021/08/22
- [PATCH 09/17] diff: remove printint, Paul Eggert, 2021/08/22
- [PATCH 14/17] diff: use mempcpy, Paul Eggert, 2021/08/22
- [PATCH 08/17] diff: remove INT_MAX limit on -F/-p searches, Paul Eggert, 2021/08/22
- [PATCH 03/17] diff3: suppress -fanalyzer alarms, Paul Eggert, 2021/08/22
- [PATCH 16/17] maint: refactor integer overflow checking, Paul Eggert, 2021/08/22
- [PATCH 04/17] maint: zalloc → xzalloc, Paul Eggert, 2021/08/22
- [PATCH 13/17] sdiff: fix unlikely memory leak, Paul Eggert, 2021/08/22
- [PATCH 02/17] maint: remove January workaround for Gnulib issue, Paul Eggert, 2021/08/22
- [PATCH 17/17] diff: add integer overflow checking, Paul Eggert, 2021/08/22