Hi,
I have revised my patch.

Wed, 5 Jun 2013 15:14:07 +0300
Juhani Numminen <juhaninummin...@gmail.com> kirjoitti:

> The attached patch fixes the FTBFS by appending the GCC flag
> -Wno-error=unused-local-typedefs.

However, a little later I found this Porting to GCC 4.8 page
http://gcc.gnu.org/gcc-4.8/porting_to.html.
It has also -Wunused-local-typedefs listed, but a solution is to remove
the typedefs and adding no- is just a workaround.

Thanks for your time,
Juhani Numminen
Description: Fix FTBFS with gcc-4.8 and -Werror and -Wunused-local-typedefs.
Author: Juhani Numminen <juhaninummin...@gmail.com>
Bug-Debian: http://bugs.debian.org/701294
Last-Update: 2013-06-07

--- holotz-castle-1.3.14.orig/JLib/JLib/Util/JRW.h
+++ holotz-castle-1.3.14/JLib/JLib/Util/JRW.h
@@ -203,7 +203,6 @@ class JRW : public JObject
    */
   u32 ReadLE32(float *fbuff)
 	{
-		typedef char pre_cxx0x_static_assert[sizeof(u32) == sizeof(float) ? 1 : -1 ];
 		u32 ibuff;
 		if (ReadLE32(&ibuff) == 4)
 		{
@@ -308,7 +307,6 @@ class JRW : public JObject
    */
   u32 WriteLE32(const float *fbuff)
 	{
-		typedef char pre_cxx0x_static_assert[sizeof(u32) == sizeof(float) ? 1 : -1 ];
 		u32 ibuff;
 		memcpy(&ibuff, fbuff, sizeof(u32));
 		return WriteLE32(&ibuff);

Reply via email to