From: root Date: Tue, 31 Jul 2012 17:45:08 +0000 (-0400) Subject: fixing warnings X-Git-Tag: v1.2.3^2~71^2^2~105 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9db9e44ff7469b89744e38f7f7740da27fdb8da;p=thirdparty%2Ffreeswitch.git fixing warnings --- diff --git a/src/mod/endpoints/mod_media_gateway/Makefile b/src/mod/endpoints/mod_media_gateway/Makefile index 66ad05c428..30b36a1b20 100644 --- a/src/mod/endpoints/mod_media_gateway/Makefile +++ b/src/mod/endpoints/mod_media_gateway/Makefile @@ -8,5 +8,6 @@ endif BASE=../../../.. LOCAL_OBJS=media_gateway.o media_gateway_stack.o media_gateway_xml.o media_gateway_cli.o media_gateway_stack_alarms.o media_gateway_cmd_handler.o media_gateway_utils.o media_gateway_packages.o +LOCAL_CFLAGS=-fno-strict-aliasing LOCAL_LDFLAGS=-lsng_mg include $(BASE)/build/modmake.rules diff --git a/src/mod/endpoints/mod_media_gateway/media_gateway.c b/src/mod/endpoints/mod_media_gateway/media_gateway.c index dc789c3511..10e4b1bd5a 100644 --- a/src/mod/endpoints/mod_media_gateway/media_gateway.c +++ b/src/mod/endpoints/mod_media_gateway/media_gateway.c @@ -480,7 +480,7 @@ mg_context_t *megaco_get_context(megaco_profile_t *profile, uint32_t context_id) /* Returns a fresh new context */ mg_context_t *megaco_choose_context(megaco_profile_t *profile) { - mg_context_t *ctx; + mg_context_t *ctx=NULL; switch_thread_rwlock_wrlock(profile->contexts_rwlock); /* Try the next one */