- 主题:现在编译kbs代码就只有三个文件有warning了:)
当然不同啦
如果加上CFLAGS=-std=c99的话甚至根本编译不过:
Making all in libsystem
[Compiling f_io.lo]
f_io.c: In function 'rm_dir':
f_io.c:81: warning: implicit declaration of function 'strdup'
f_io.c:81: warning: assignment makes pointer from integer without a cast
f_io.c:88: warning: implicit declaration of function 'strsep'
f_io.c:88: warning: assignment makes pointer from integer without a cast
[Compiling kbs_string.lo]
[Compiling uuencode.lo]
[Compiling base64.lo]
base64.c: In function 'from64tobits':
base64.c:59: warning: implicit declaration of function 'isascii'
[Linking libsystem.la]
Making all in libBBS
[Compiling record.lo]
[Compiling log.lo]
[Compiling ucache.lo]
[Compiling stuff.lo]
[Compiling md5.lo]
[Compiling crypt.lo]
[Compiling pass.lo]
[Compiling bcache.lo]
[Compiling utmp.lo]
[Compiling lvars.lo]
[Compiling site.lo]
[Compiling boards.lo]
[Compiling bbs_sendmail.lo]
[Compiling libmsg.lo]
[Compiling article.lo]
[Compiling convcode.lo]
In file included from convcode.c:7:
/usr/include/sys/ipc.h:25:3: warning: #warning "Files using this header must be compiled with _SVID_SOURCE or _XOPEN_SOURCE"
In file included from ../src/bbs.h:630,
from convcode.c:15:
../src/var.h:66: error: syntax error before 'sigjmp_buf'
../src/var.h:66: warning: no semicolon at end of struct or union
../src/var.h:68: error: syntax error before '}' token
In file included from ../src/bbs.h:637,
from convcode.c:15:
../src/func.h:242: error: syntax error before '*' token
../src/func.h:242: warning: type defaults to 'int' in declaration of 'push_sigbus'
../src/func.h:242: warning: data definition has no type or storage class
make[2]: *** [convcode.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
【 在 roctall (蛇王阿奔) 的大作中提到: 】
: ...
: 貌似你的gcc版本高一些
: 竟然warning也不同,hehe
: ...................
--
FROM 218.28.14.*
我换不了远程主机的操作系统..
【 在 foxban (等待上帝的日子...) 的大作中提到: 】
: 用fc4试试?
--
FROM 221.192.222.*
增长知识了...
【 在 JulyClyde (七月) 的大作中提到: 】
: 当然不同啦
: 如果加上CFLAGS=-std=c99的话甚至根本编译不过:
: Making all in libsystem
: ...................
--
FROM 221.192.222.*
上面他说了是3.3.5-2
【 在 etnlegend (etn|金字塔·神|perplexity) 的大作中提到: 】
: 好像早就全都没有warning了...
: 你gcc什么版本的?
--
FROM 218.28.14.*
debian的
软件包:gcc
版本号:4:3.3.5-3
【 在 etnlegend (etn|金字塔·神|perplexity) 的大作中提到: 】
: 好像早就全都没有warning了...
: 你gcc什么版本的?
--
FROM 221.192.215.*
小事小事……
【 在 roctall (蛇王阿奔) 的大作中提到: 】
: [Compiling bbs.c]
: bbs.c: In function `Import_post':
: bbs.c:3414: warning: implicit declaration of function `haspc'
: ...................
--
FROM 221.218.23.*
我记得你貌似都是直接拉到最高?
【 在 etnlegend (etn|金字塔·神|perplexity) 的大作中提到: 】
: 好像早就全都没有warning了...
: 你gcc什么版本的?
--
FROM 221.218.23.*
你开了 -Wunused-but-set-variable 啊。
【 在 Haishion (Haishion) 的大作中提到: 】
: 为什么我在ubuntu12.04LTS下编译warning一大堆。大部分都是申明了不用的。
: gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
: 摘录部分
: ...................
--
FROM 123.118.10.*
默认好像是-Wall吧,怎么在./configure的时候关掉这个但是其他warning保留着?
【 在 fancyrabbit (fancy★一摩尔时光) 的大作中提到: 】
: 你开了 -Wunused-but-set-variable 啊。
--
FROM 125.77.201.*
-Wno这个
【 在 Haishion (Haishion) 的大作中提到: 】
: 默认好像是-Wall吧,怎么在./configure的时候关掉这个但是其他warning保留着?
--
FROM 123.118.10.*