[MERGED] openbsc[master]: talloc_cxt: Fix compiler warning / missing #include

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
Fri Nov 11 15:33:42 UTC 2016


Harald Welte has submitted this change and it was merged.

Change subject: talloc_cxt: Fix compiler warning / missing #include
......................................................................


talloc_cxt: Fix compiler warning / missing #include

talloc_ctx.c: In function ‘talloc_ctx_init’:
talloc_ctx.c:40:2: warning: implicit declaration of function ‘msgb_talloc_ctx_init’ [-Wimplicit-function-declaration]
  msgb_talloc_ctx_init(ctx_root, 0);
  ^~~~~~~~~~~~~~~~~~~~

Change-Id: Ib8ebc02d5cf0d2b4019473d3750ae7c6f8a32896
---
M openbsc/src/libcommon/talloc_ctx.c
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/openbsc/src/libcommon/talloc_ctx.c b/openbsc/src/libcommon/talloc_ctx.c
index 7a8bfd3..5e3d9ae 100644
--- a/openbsc/src/libcommon/talloc_ctx.c
+++ b/openbsc/src/libcommon/talloc_ctx.c
@@ -18,6 +18,7 @@
  */
 
 #include <osmocom/core/talloc.h>
+#include <osmocom/core/msgb.h>
 
 extern void *tall_bsc_ctx;
 extern void *tall_fle_ctx;

-- 
To view, visit https://gerrit.osmocom.org/1233
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib8ebc02d5cf0d2b4019473d3750ae7c6f8a32896
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list