File liblognorm-2.0.4-no-return-in-nonvoid-function.patch of Package liblognorm

From: Andreas Stieger <astieger@suse.com>
Date: Tue, 14 Nov 2017 13:58:09 +0000
Subject: fix no-return-in-nonvoid-function
Upstream: no
References: https://github.com/rsyslog/liblognorm/pull/265

I: Program returns random data in a function
E: liblognorm no-return-in-nonvoid-function strndup.c:42

Index: liblognorm-2.0.4/compat/strndup.c
===================================================================
--- liblognorm-2.0.4.orig/compat/strndup.c	2017-10-02 13:14:45.000000000 +0200
+++ liblognorm-2.0.4/compat/strndup.c	2017-11-14 14:57:40.910552382 +0100
@@ -36,8 +36,4 @@ strndup(const char *s, size_t n)
 	new_s[len] = '\0';
 	return new_s;
 }
-#else /* #ifndef HAVE_STRNDUP */
-int dummy_dummy_required_for_solaris_do_not_use(void)
-{
-}
 #endif /* #ifndef HAVE_STRNDUP */