瀏覽代碼

* gcc-2.95 compile problem
* Don'tt free_conf() on hubs.


svn: 997

Bryan Drewery 22 年之前
父節點
當前提交
ccc130f139
共有 4 個文件被更改,包括 105 次插入210 次删除
  1. 1 1
      Makefile.in
  2. 1 1
      autotools/includes/depend.m4
  3. 102 207
      configure
  4. 1 1
      src/main.c

+ 1 - 1
Makefile.in

@@ -37,7 +37,7 @@ LIBS = @LIBS@ @ZLIB@ @RESLIB@
 
 DEBCFLAGS = -DDEBUG_ASSERT -DDEBUG_MEM -g3 -ggdb3
 CFLGS = -fno-strict-aliasing -W -Wformat \
--Wdisabled-optimization -Wshadow -Winline \
+-Wshadow -Winline \
 -Wnested-externs -fno-asm -Wno-format-y2k \
 -Wlarger-than-2048 -Wpointer-arith -Wcast-align \
 -Waggrepate-return -Wlong-long -Wbad-function-cast \

+ 1 - 1
autotools/includes/depend.m4

@@ -9,7 +9,7 @@ CCDEPMODE=gcc
 num=`$CC -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
 if test $num = "3"; then
   CCDEPMODE=gcc3
-  GCC3="-Wpacked -Wno-unused-parameter -Wmissing-format-attribute"
+  GCC3="-Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
 fi
 AC_SUBST(CCDEPMODE)dnl
 AC_SUBST(GCC3)dnl

文件差異過大導致無法顯示
+ 102 - 207
configure


+ 1 - 1
src/main.c

@@ -642,8 +642,8 @@ static void startup_checks() {
     }
   }
   if (!localhub)		/* only clear conf on NON localhubs, we need it for cmd_conf */
-#endif /* LEAF */
     free_conf();
+#endif /* LEAF */
 }
 
 #include "mod/static.h"

部分文件因文件數量過多而無法顯示