[sr-dev] git:master: lib/srdb1: fix clang compiler warning

Ovidiu Sas osas at voipembedded.com
Wed Sep 3 19:16:41 CEST 2014


Module: sip-router
Branch: master
Commit: 89f9f0c10c10c09218576129e3fdc3da55355c48
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=89f9f0c10c10c09218576129e3fdc3da55355c48

Author: Ovidiu Sas <osas at voipembedded.com>
Committer: Ovidiu Sas <osas at voipembedded.com>
Date:   Wed Sep  3 13:15:35 2014 -0400

lib/srdb1: fix clang compiler warning

---

 lib/srdb1/db_val.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/lib/srdb1/db_val.c b/lib/srdb1/db_val.c
index dc2ea4b..1bdc2bc 100644
--- a/lib/srdb1/db_val.c
+++ b/lib/srdb1/db_val.c
@@ -183,6 +183,9 @@ int db_str2val(const db_type_t _t, db_val_t* _v, const char* _s, const int _l,
 		VAL_BLOB(_v).len = _l;
 		VAL_TYPE(_v) = DB1_BLOB;
 		return 0;
+
+	default:
+		return -10;
 	}
 	return -10;
 }




More information about the sr-dev mailing list