]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fixing warnings
authorroot <root@mtt2.netborder.lan>
Tue, 31 Jul 2012 17:45:08 +0000 (13:45 -0400)
committerroot <root@mtt2.netborder.lan>
Tue, 31 Jul 2012 17:45:08 +0000 (13:45 -0400)
src/mod/endpoints/mod_media_gateway/Makefile
src/mod/endpoints/mod_media_gateway/media_gateway.c

index 66ad05c428140078f79cee14c61f6a467dad76b5..30b36a1b20f101f3ba4c2158ff32116d0ad254ab 100644 (file)
@@ -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
index dc789c3511d75978d9ad10bd605b3fd884122daf..10e4b1bd5a081581b0fea7ee93b69bea880f69a3 100644 (file)
@@ -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 */