浏览代码

- warnings fixes on 64 bit systems

Andrei Pelinescu-Onciul 21 年之前
父节点
当前提交
664b278400
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 1 1
      Makefile.defs
  2. 2 1
      modules/tm/tm.c

+ 1 - 1
Makefile.defs

@@ -479,7 +479,7 @@ ifeq			($(CC_SHORTVER), 3.0)
 					CPU ?= athlon64
 					CFLAGS+=-minline-all-stringops \
 							-falign-loops \
-							-mcpu=$(CPU) \
+							#-mcpu=$(CPU) \ # not working on all x86_64 gccs
 							#-mcpu=athlon
 else
 ifeq			($(CC_SHORTVER), 2.9x) #older gcc version (2.9[1-5])

+ 2 - 1
modules/tm/tm.c

@@ -438,7 +438,8 @@ static int script_init( struct sip_msg *foo, void *bar)
 
 static int mod_init(void)
 {
-	DBG( "TM - (size of cell=%d) initializing...\n",sizeof(struct cell));
+	DBG( "TM - (size of cell=%ld) initializing...\n", 
+			(long)sizeof(struct cell));
 	/* checking if we have sufficient bitmap capacity for given
 	   maximum number of  branches */
 	if (MAX_BRANCHES+1>31) {