[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PATCH 03/11] configure: Fix compiler warning in config.l
From: |
Stefan Weil |
Subject: |
[Qemu-trivial] [PATCH 03/11] configure: Fix compiler warning in config.log (integer from pointer) |
Date: |
Sat, 17 Dec 2011 09:27:31 +0100 |
warning: return makes integer from pointer without a cast
Signed-off-by: Stefan Weil <address@hidden>
---
configure | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/configure b/configure
index 93c6cbe..8dee237 100755
--- a/configure
+++ b/configure
@@ -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 != (const char *)0;
+}
EOF
for curses_lib in $curses_list; do
if compile_prog "" "$curses_lib" ; then
--
1.7.2.5
[Qemu-trivial] [PATCH 02/11] configure: Fix compiler warnings in config.log (old-style function definition), Stefan Weil, 2011/12/17
[Qemu-trivial] [PATCH 04/11] configure: Fix compiler warnings in config.log (null arguments), Stefan Weil, 2011/12/17
[Qemu-trivial] [PATCH 05/11] configure: Fix compiler warning in config.log (unused variable), Stefan Weil, 2011/12/17
[Qemu-trivial] [PATCH 09/11] configure: Fix compiler warning in config.log (value was never used), Stefan Weil, 2011/12/17