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/.

roox gerrit-no-reply at lists.osmocom.org
Sat Oct 13 18:46:04 UTC 2018


roox has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-remsim refs/changes/43/11343/1

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: newchange
Gerrit-Change-Id: I18705488d0ef8a445004e6a7e81dd2483afb9bdb
Gerrit-Change-Number: 11343
Gerrit-PatchSet: 1
Gerrit-Owner: roox <mardnh at gmx.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181013/8343878f/attachment.htm>


More information about the gerrit-log mailing list