Bug#505957: FTBFS with GCC 4.4: #elif used instead of #else

Martin Michlmayr tbm at cyrius.com
Sun Nov 16 18:47:28 UTC 2008


Package: wesnoth
Version: 1:1.4.6-1
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with the upcoming GCC 4.4.  Version 4.4
has not been released yet but I'm building with a snapshot in order
to find errors and give people an advance warning.

GCC 4.4 will introduce better checks in the preprocessor.  The problem
is pretty obvious: you're using a #elif without any condition when
you really want a #else.

You can reproduce this problem with gcc-snapshot from unstable.

--- src/network_worker.cpp~	2008-11-16 18:36:35.000000000 +0000
+++ src/network_worker.cpp	2008-11-16 18:36:40.000000000 +0000
@@ -237,7 +237,7 @@
 					retval = select(((_TCPsocket*)s)->channel + 1, &readfds, NULL, NULL, &tv);
 				} while(retval == -1 && errno == EINTR);
 
-#elif
+#else
 				SDL_Delay(5);
 #endif
 			} else {

-- 
Martin Michlmayr
http://www.cyrius.com/





More information about the Pkg-games-devel mailing list