[sr-dev] git:pd/msrp: ims_icscf: getting rid of "defined but not used" compiler warning

Peter Dunkley peter.dunkley at crocodile-rcs.com
Wed Feb 6 14:51:40 CET 2013


Module: sip-router
Branch: pd/msrp
Commit: 47276cf597ab941016fd49dbcfaaab3da8802834
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=47276cf597ab941016fd49dbcfaaab3da8802834

Author: Ovidiu Sas <osas at voipembedded.com>
Committer: Ovidiu Sas <osas at voipembedded.com>
Date:   Sun Feb  3 23:36:26 2013 -0500

ims_icscf: getting rid of "defined but not used" compiler warning

---

 modules/ims_icscf/nds.c |    3 +++
 modules/ims_icscf/nds.h |    2 --
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/ims_icscf/nds.c b/modules/ims_icscf/nds.c
index 0e5b06b..2f2668f 100644
--- a/modules/ims_icscf/nds.c
+++ b/modules/ims_icscf/nds.c
@@ -65,6 +65,9 @@
 extern sl_api_t slb;
 
 
+static str str_msg_403 = {MSG_403, 9};
+static str str_msg_500 = {MSG_500, 46};
+
 /** Defines the untrusted headers */
 str untrusted_headers[]={
 	{"P-Asserted-Identity",19},
diff --git a/modules/ims_icscf/nds.h b/modules/ims_icscf/nds.h
index 1f7abfa..29f973a 100644
--- a/modules/ims_icscf/nds.h
+++ b/modules/ims_icscf/nds.h
@@ -62,8 +62,6 @@
 #define MSG_403 "Forbidden" 
 #define MSG_500 "I-CSCF Error while stripping untrusted headers"
 
-static str str_msg_403 = {MSG_403, 9};
-static str str_msg_500 = {MSG_500, 46};
 
 int I_NDS_check_trusted(struct sip_msg* msg, char* str1, char* str2);
 




More information about the sr-dev mailing list