Osmo-PCU: make error
diff mbox

Message ID 20151225161551.GG31126@nataraja
State Superseded
Headers show

Commit Message

Harald Welte Dec. 25, 2015, 4:15 p.m. UTC
Hi Sipos,

On Fri, Dec 25, 2015 at 03:50:45PM +0100, Sipos Csaba wrote:
> /usr/local/include/osmocom/core/prim.h:23:27: error: uninitialized const 'osmo_prim_op_names' [-fpermissive]
>  const struct value_string osmo_prim_op_names[5];

This was introduced by one of my recent libosmocore changes, sorry.

The patch below (just pushed to libosmocore master) should fix it.

From c959afdcd9d8f227f4a72a915ac2e3f79d1d1d3b Mon Sep 17 00:00:00 2001
From: Harald Welte <laforge@gnumonks.org>
Date: Fri, 25 Dec 2015 17:14:07 +0100
Subject: [PATCH] osmo_prim_op_names should be extern

---
 include/osmocom/core/prim.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox

diff --git a/include/osmocom/core/prim.h b/include/osmocom/core/prim.h
index e920eb8..9e71007 100644
--- a/include/osmocom/core/prim.h
+++ b/include/osmocom/core/prim.h
@@ -20,7 +20,7 @@  enum osmo_prim_operation {
 	PRIM_OP_CONFIRM,	/*!< \brief cofirm */
 };
 
-const struct value_string osmo_prim_op_names[5];
+extern const struct value_string osmo_prim_op_names[5];
 
 #define _SAP_GSM_SHIFT	24