From be382c572561862fee3a7bf3dae1b0236ac3216b Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 15 Jun 2020 01:37:14 +0000 Subject: Only compile compat_*.c implementations that are actually needed. That's cleaner and it is supposed to fix compiler warnings with gcc 10 reported by Wynn Wolf Arbor on discuss@. --- compat_stringlist.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'compat_stringlist.c') diff --git a/compat_stringlist.c b/compat_stringlist.c index 17eba772..b23b16d5 100644 --- a/compat_stringlist.c +++ b/compat_stringlist.c @@ -1,12 +1,4 @@ -#include "config.h" - -#if HAVE_STRINGLIST - -int dummy; - -#else - -/* $Id: compat_stringlist.c,v 1.6 2015/11/07 14:22:29 schwarze Exp $ */ +/* $Id: compat_stringlist.c,v 1.7 2020/06/15 01:37:15 schwarze Exp $ */ /* * Copyright (c) 1994 Christos Zoulas * All rights reserved. @@ -32,6 +24,7 @@ int dummy; * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ +#include "config.h" #if HAVE_ERR #include @@ -115,5 +108,3 @@ sl_find(StringList *sl, const char *name) return NULL; } - -#endif -- cgit v1.2.3