Change in osmo-remsim[master]: Fix compiler warning: no-return-in-nonvoid-function main.c

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Sun Oct 14 18:04:45 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/11343 )

Change subject: Fix compiler warning: no-return-in-nonvoid-function main.c
......................................................................

Fix compiler warning: no-return-in-nonvoid-function main.c

RPM post-build-checks found some issue and marks these as error:
[  31s] I: Program returns random data in a function
[  31s] E: osmo-remsim no-return-in-nonvoid-function main.c:49

Change-Id: I18705488d0ef8a445004e6a7e81dd2483afb9bdb
---
M src/main.c
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved; Verified



diff --git a/src/main.c b/src/main.c
index 6ae47e8..23fa9d2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -46,4 +46,5 @@
 	g_ctx = talloc_named_const(NULL, 0, "main");
 	talloc_asn1_ctx = talloc_named_const(g_ctx, 0, "asn1_context");
 	card_readers_probe(g_ctx);
+	return 0;
 }

-- 
To view, visit https://gerrit.osmocom.org/11343
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-remsim
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I18705488d0ef8a445004e6a7e81dd2483afb9bdb
Gerrit-Change-Number: 11343
Gerrit-PatchSet: 1
Gerrit-Owner: roox <mardnh at gmx.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181014/92820c1d/attachment.htm>


More information about the gerrit-log mailing list