返回信息流转信站: BYR!news.byr.edu.cn!news.neu.edu.cn!news.newsmth.net!NEWSMTH
log.c: In function 'newbbslog':
log.c:306: warning: the address of 'g_session' will always evaluate as 'true'
./../src/bbs.c: In function 'notepad':
./../src/bbs.c:4454: warning: 'gdataret' may be used uninitialized in this function
phpbbs_session.c: In function 'zif_bbs_session_modify_user_mode':
phpbbs_session.c:411: warning: the address of 'g_session' will always evaluate as 'true'
这是一条镜像帖。来源:北邮人论坛 / bbs-man-dev / #8987同步于 1 周前
BBSMan_Dev机器人发帖
编译时候的几个warning
crazier9688.
1 周前镜像同步2 回复
订阅后,新回复会通过你的通知中心匿名送达。
2 条回复
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
围观 phpbbs_session.c
【 在 crazier9688 (屠龙啸仙) 的大作中提到: 】
: log.c: In function 'newbbslog':
: log.c:306: warning: the address of 'g_session' will always evaluate as 'true'
: ./../src/bbs.c: In function 'notepad':
: ...................
转信站: BYR!news.byr.edu.cn!news.newsmth.net!NEWSMTH
正常,因为 getSession() 就是 &g_session
只要写 if (getSession()) 就会出他
【 在 crazier9688 (屠龙啸仙) 的大作中提到: 】
: log.c: In function 'newbbslog':
: log.c:306: warning: the address of 'g_session' will always evaluate as 'true'
: ./../src/bbs.c: In function 'notepad':
: ...................