File 0001-fix-compiler-warnings-return-0-in-main-in-3-tests.patch of Package osmo-ggsn

From dabb8b4860199a44401fa436f5fcd56eb3d09512 Mon Sep 17 00:00:00 2001
From: Neels Hofmeyr <neels@hofmeyr.de>
Date: Sun, 29 Oct 2017 01:53:50 +0200
Subject: [PATCH] fix compiler warnings: return 0 in main(), in 3 tests

Change-Id: I9e49ceba6b0a8dffd331e5707667d9bb007f3ec7
---
 tests/gtp/gtpie_test.c  | 1 +
 tests/lib/in46a_test.c  | 1 +
 tests/lib/ippool_test.c | 1 +
 3 files changed, 3 insertions(+)

diff --git a/tests/gtp/gtpie_test.c b/tests/gtp/gtpie_test.c
index fe2d502..8d87dcc 100644
--- a/tests/gtp/gtpie_test.c
+++ b/tests/gtp/gtpie_test.c
@@ -124,4 +124,5 @@ int main(int argc, char **argv)
 	/* TODO: gtpie_encaps() */
 	/* TODO: gtpie_encaps2() */
 	/* TODO: gtpie_getie(), gtpie_exist(), gtpie_get*() */
+	return 0;
 }
diff --git a/tests/lib/in46a_test.c b/tests/lib/in46a_test.c
index 42a1768..ab7156f 100644
--- a/tests/lib/in46a_test.c
+++ b/tests/lib/in46a_test.c
@@ -321,4 +321,5 @@ int main(int argc, char **argv)
 	test_in46a_to_eua();
 	test_in46a_from_eua();
 	test_in46a_netmasklen();
+	return 0;
 }
diff --git a/tests/lib/ippool_test.c b/tests/lib/ippool_test.c
index ea56edd..5b3227c 100644
--- a/tests/lib/ippool_test.c
+++ b/tests/lib/ippool_test.c
@@ -130,4 +130,5 @@ int main(int argc, char **argv)
 	srand(time(NULL));
 
 	test_pool_sizes();
+	return 0;
 }
-- 
2.13.6

openSUSE Build Service is sponsored by