BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / bbs-man-dev / #13698同步于 1 周前
BBSMan_Dev机器人发帖

现在编译kbs代码就只有三个文件有warning了:)

Haishion.
1 周前镜像同步4 回复
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH 为什么我在ubuntu12.04LTS下编译warning一大堆。大部分都是申明了不用的。 gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) 摘录部分 make -s all-recursive Making all in libsystem [Compiling f_io.lo] [Compiling kbs_string.lo] [Compiling uuencode.lo] [Compiling base64.lo] [Linking libsystem.la] Making all in libBBS [Compiling record.lo] [Compiling log.lo] log.c: In function 'newbbslog': log.c:306:9: warning: the address of 'g_session' will always evaluate as 'true' [-Waddress] [Compiling ucache.lo] ucache.c: In function 'ucache_hash_deep': ucache.c:116:23: warning: variable 'usage' set but not used [-Wunused-but-set-variable] ucache.c: In function 'ucache_hash': ucache.c:167:23: warning: variable 'usage' set but not used [-Wunused-but-set-variable] ucache.c: In function 'getnewuserid': ucache.c:727:12: warning: variable 'system_time' set but not used [-Wunused-but-set-variable] [Compiling stuff.lo] stuff.c: In function 'write_formatted_file': stuff.c:3375:17: warning: implicit declaration of function 'get_parameter_index_len' [-Wimplicit-function-declaration] [Compiling md5.lo] [Compiling crypt.lo] [Compiling pass.lo] [Compiling bcache.lo] [Compiling utmp.lo] [Compiling lvars.lo] [Compiling boards.lo] boards.c: In function 'brc_initial': boards.c:834:31: warning: variable 'bptr' set but not used [-Wunused-but-set-variable] [Compiling bbs_sendmail.lo] boards.c:834:31: warning: variable 'bptr' set but not used [-Wunused-but-set-variable] [Compiling bbs_sendmail.lo] bbs_sendmail.c: In function 'mail_buf': bbs_sendmail.c:248:9: warning: variable 'unum' set but not used [-Wunused-but-set-variable] bbs_sendmail.c: In function 'mail_file': bbs_sendmail.c:307:9: warning: variable 'unum' set but not used [-Wunused-but-set-variable] [Compiling libmsg.lo] [Compiling article.lo] article.c: In function 'get_dir_threads': article.c:1822:13: warning: variable 'off' set but not used [-Wunused-but-set-variable] [Compiling convcode.lo] [Compiling sysconf.lo] sysconf.c: In function 'load_sysconf_image': sysconf.c:332:25: warning: variable 'p' set but not used [-Wunused-but-set-variable] [Compiling libann.lo] libann.c: In function 'a_SeSave': libann.c:1041:10: warning: variable 'findattach' set but not used [-Wunused-but-set-variable] [Compiling filter.lo] [Compiling mgrep.lo] mgrep.c: In function 'monkey1': mgrep.c:243:20: warning: variable 'lastout' set but not used [-Wunused-but-set-variable] mgrep.c: In function 'm_short': mgrep.c:351:20: warning: variable 'lastout' set but not used [-Wunused-but-set-variable] [Compiling output.lo] [Compiling libtmpl.lo] [Compiling libpc.lo] [Compiling xml.lo] [Compiling super_filter.lo] [Compiling libbm.lo] [Compiling librefer.lo] [Compiling site.lo] [Compiling default.lo] [Compiling site.lo] [Compiling default.lo] [Linking libBBS.la] Making all in rzsz [Compiling lsz.lo] lsz.c: In function 'zsendfdata': lsz.c:972:9: warning: variable 'newcnt' set but not used [-Wunused-but-set-variable] [Compiling lrz.lo] lrz.c: In function 'tryz': lrz.c:862:18: warning: variable 'cmdzack1flg' set but not used [-Wunused-but-set-variable] [Compiling zreadline.lo] [Compiling crctab.lo] [Compiling rbsb.lo] [Compiling zm.lo] [Compiling canit.lo] [Linking libzmodem.la] Making all in src [Compiling bbs.c] bbs.c: In function ‘read_hot_info’: bbs.c:2793:19: warning: variable ‘addfav’ set but not used [-Wunused-but-set-variable] bbs.c: In function ‘Import_post’: bbs.c:4633:17: warning: implicit declaration of function ‘haspc’ [-Wimplicit-function-declaration] bbs.c: In function ‘SR_BMFunc’: bbs.c:5862:12: warning: variable ‘o_gid’ set but not used [-Wunused-but-set-variable] [Compiling delete.c] [Compiling mail.c] mail.c: In function ‘chkmail’: mail.c:45:19: warning: variable ‘lasttime’ set but not used [-Wunused-but-set-variable] mail.c: In function ‘do_send’: mail.c:422:9: warning: format not a string literal and no format arguments [-Wformat-security] mail.c: In function ‘doforward’: mail.c:2493:9: warning: variable ‘y’ set but not used [-Wunused-but-set-variable] mail.c: In function ‘doforward’: mail.c:2493:9: warning: variable ‘y’ set but not used [-Wunused-but-set-variable] mail.c: In function ‘maillist_key’: mail.c:3038:23: warning: variable ‘x’ set but not used [-Wunused-but-set-variable] [Compiling register.c] register.c: In function ‘check_register_info’: register.c:243:17: warning: variable ‘newregfile’ set but not used [-Wunused-but-set-variable] [Compiling xyz.c] xyz.c: In function ‘x_level’: xyz.c:279:9: warning: variable ‘flag’ set but not used [-Wunused-but-set-variable] [Compiling talk.c] talk.c: In function ‘t_query’: talk.c:346:18: warning: variable ‘perf’ set but not used [-Wunused-but-set-variable] talk.c:346:13: warning: variable ‘exp’ set but not used [-Wunused-but-set-variable] talk.c: In function ‘do_talk’: talk.c:1242:9: warning: variable ‘page_pending’ set but not used [-Wunused-but-set-variable] [Compiling comm_lists.c] [Compiling namecomplete.c] [Compiling chat.c] [Compiling maintain.c] [Compiling edit.c] edit.c: In function ‘searchline’: edit.c:368:9: warning: variable ‘tmpline’ set but not used [-Wunused-but-set-variable] [Compiling more.c] more.c: In function ‘mem_show’: more.c:1086:12: warning: variable ‘curr_line’ set but not used [-Wunused-but-set-variable] more.c: In function ‘draw_content_more’: more.c:1442:26: warning: variable ‘last_line’ set but not used [-Wunused-but-set-variable] more.c:1442:15: warning: variable ‘curr_line’ set but not used [-Wunused-but-set-variable] [Compiling help.c] [Compiling screen.c] screen.c: In function ‘mailscr’: [Compiling screen.c] screen.c: In function ‘mailscr’: screen.c:1026:10: warning: variable ‘flagc’ set but not used [-Wunused-but-set-variable] [Compiling userinfo.c] [Compiling vote.c] vote.c: In function ‘b_vote’: vote.c:1488:9: warning: variable ‘voting’ set but not used [-Wunused-but-set-variable] [Compiling announce.c] announce.c: In function ‘a_newitem’: announce.c:693:5: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘time_t’ [-Wformat] [Compiling sendmsg.c] [Compiling boards_t.c] boards_t.c: In function ‘fav_prekey’: boards_t.c:958:25: warning: variable ‘ptr’ set but not used [-Wunused-but-set-variable] boards_t.c: In function ‘fav_refresh’: boards_t.c:1844:25: warning: variable ‘ptr’ set but not used [-Wunused-but-set-variable] [Compiling bm.c] bm.c: In function ‘modify_user_deny’: bm.c:626:5: warning: implicit declaration of function ‘get_denied_freetype’ [-Wimplicit-function-declaration] [Compiling list.c] [Compiling goodbye.c] [Compiling bbsd_single.c] [Compiling select.c] [Compiling newmain_single.c] newmain_single.c: In function ‘login_query’: newmain_single.c:892:14: warning: variable ‘can_in’ set but not used [-Wunused-but-set-variable] newmain_single.c:486:9: warning: variable ‘curr_http_num’ set but not used [-Wunused-but-set-variable] [Compiling newio.c] [Compiling newterm.c] [Compiling definekey.c] [Compiling calltime.c] [Compiling tmpl.c] [Compiling calltime.c] [Compiling tmpl.c] [Compiling msg_manager.c] [Compiling addr_manage.c] [Compiling personal_corp.c] [Compiling newread.c] [Compiling newhelp.c] [Linking bbsd] Making all in daemon [Compiling miscd.c] miscd.c: In function ‘killanonydir’: miscd.c:154:9: warning: format not a string literal and no format arguments [-Wformat-security] [Linking miscd] [Compiling newpop3.c] newpop3.c: In function ‘main’: newpop3.c:576:23: warning: variable ‘pop3s_port’ set but not used [-Wunused-but-set-variable] [Linking newpop3d] [Compiling station.c] station.c: In function ‘chat_list_rooms’: station.c:881:15: warning: variable ‘pause’ set but not used [-Wunused-but-set-variable] station.c:881:12: warning: variable ‘j’ set but not used [-Wunused-but-set-variable] station.c: In function ‘chat_do_user_list’: station.c:926:12: warning: variable ‘j’ set but not used [-Wunused-but-set-variable] [Linking chatd] [Compiling bbslogd.c] [Linking bbslogd] Making all in local_utl [Compiling poststat.c] [Linking poststat] [Compiling static.c] static.c: In function ‘main’: static.c:37:16: warning: variable ‘old_st’ set but not used [-Wunused-but-set-variable] static.c: In function ‘main’: static.c:37:16: warning: variable ‘old_st’ set but not used [-Wunused-but-set-variable] [Linking static] [Compiling usage.c] [Linking usage] [Compiling Xhtml.c] [Linking Xhtml] [Compiling Bhtml.c] [Linking Bhtml] [Compiling listonline.c] [Linking listonline] [Compiling showBM.c] [Linking showBM] [Compiling idx0Ann.c] idx0Ann.c: In function ‘PhaseDir’: idx0Ann.c:121:12: warning: variable ‘ltt_dir’ set but not used [-Wunused-but-set-variable] idx0Ann.c:104:18: warning: variable ‘lShift’ set but not used [-Wunused-but-set-variable] [Linking idx0Ann] [Compiling lazybm.c] [Linking lazybm] [Compiling fixdir.c] fixdir.c: In function ‘main’: fixdir.c:180:9: warning: variable ‘i’ set but not used [-Wunused-but-set-variable] [Linking fixdir] [Compiling autoundeny.c] [Linking autoundeny] [Compiling statBM.c] [Linking statBM] [Compiling gen_title.c] [Linking gen_title] [Compiling find_rm_lost.c] [Linking find_rm_lost] 【 在 roctall (蛇王阿奔) 的大作中提到: 】 : [Compiling bbs.c] : bbs.c: In function `Import_post': : bbs.c:3414: warning: implicit declaration of function `haspc' : ...................
订阅后,新回复会通过你的通知中心匿名送达。
4 条回复
fancyrabbit.机器人#1 · 1 周前
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH 你开了 -Wunused-but-set-variable 啊。 【 在 Haishion (Haishion) 的大作中提到: 】 : 为什么我在ubuntu12.04LTS下编译warning一大堆。大部分都是申明了不用的。 : gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) : 摘录部分 : ...................
Haishion.机器人#2 · 1 周前
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH 默认好像是-Wall吧,怎么在./configure的时候关掉这个但是其他warning保留着? 【 在 fancyrabbit (fancy★一摩尔时光) 的大作中提到: 】 : 你开了 -Wunused-but-set-variable 啊。
fancyrabbit.机器人#3 · 1 周前
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH -Wno这个 【 在 Haishion (Haishion) 的大作中提到: 】 : 默认好像是-Wall吧,怎么在./configure的时候关掉这个但是其他warning保留着?
chutium.机器人#4 · 1 周前
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH woow...这般老的帖子都是怎么被翻出来的... 【 在 Haishion (Haishion) 的大作中提到: 】 : 为什么我在ubuntu12.04LTS下编译warning一大堆。大部分都是申明了不用的。 : gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) : 摘录部分 : ...................