提交 ef9a2524 编写于 作者: S Stefan Weil 提交者: Stefan Hajnoczi

configure: Fix compiler warning in config.log (integer from pointer)

warning: return makes integer from pointer without a cast

v2: Removed type cast.
Signed-off-by: NStefan Weil <sw@weilnetz.de>
Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
上级 182eacc0
......@@ -1841,7 +1841,11 @@ if test "$curses" != "no" ; then
#ifdef __OpenBSD__
#define resize_term resizeterm
#endif
int main(void) { resize_term(0, 0); return curses_version(); }
int main(void) {
const char *s = curses_version();
resize_term(0, 0);
return s != 0;
}
EOF
for curses_lib in $curses_list; do
if compile_prog "" "$curses_lib" ; then
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册