From e2ddc5c06b27442a7de3ec790ed7b431a1595710 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 1 May 2020 18:40:56 +0200 Subject: [PATCH] exclude unused function --- src/misc/alloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/misc/alloc.c b/src/misc/alloc.c index c2ca1e0c4..6e2e3d187 100644 --- a/src/misc/alloc.c +++ b/src/misc/alloc.c @@ -180,7 +180,7 @@ static inline int product_overflow(size_t a, size_t b, size_t *p_n) return 0; } /* end of function product_overflow */ - +#if 0 /* Print error related to allocating a product that cannot fit in a * size_t and exit. This function does not return. */ static void overflow_error(size_t num, size_t size) @@ -194,5 +194,6 @@ static void overflow_error(size_t num, size_t size) exit(EXIT_FAILURE); #endif } /* end of function overflow_error */ +#endif #endif /* #ifndef HAVE_LIBGC */