From f04e2f31ea2fefc734c19805bb93629c73f7f2a4 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Wed, 21 Jun 2017 10:52:25 +0200 Subject: 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 --- examples/sccp_test_vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') 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)) { -- cgit v1.2.3