summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-06-21 10:52:25 +0200
committerHarald Welte <laforge@gnumonks.org>2017-06-22 06:23:04 +0000
commitf04e2f31ea2fefc734c19805bb93629c73f7f2a4 (patch)
tree2bf8c9df2afe9c306165cd03f8e0741b7cc53fdd
parentb1510a11220766c77910f3ead3628e969a5ffc5f (diff)
sccp_test_vty: Fix compilation warning: Unused variable
Instead of removing the variable, leave it there with unused attribute set because it is an example and gives extra information to potential readers of the function (it provides you with the actual type of void* _scu). Change-Id: Id5fddf261a7a75ee1d6e9aff0734065ebf8551ab
-rw-r--r--examples/sccp_test_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/sccp_test_vty.c b/examples/sccp_test_vty.c
index ddfbb27..d809fbc 100644
--- a/examples/sccp_test_vty.c
+++ b/examples/sccp_test_vty.c
@@ -117,7 +117,7 @@ DEFUN(scu, scu_cmd,
static int testclnt_prim_cb(struct osmo_prim_hdr *oph, void *_scu)
{
- struct osmo_sccp_user *scu = _scu;
+ struct osmo_sccp_user *scu __attribute__((unused)) = _scu;
struct osmo_scu_prim *scu_prim = (struct osmo_scu_prim *) oph;
switch (OSMO_PRIM_HDR(&scu_prim->oph)) {