gnash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash] [patch] Fix build error because of invalid #warn


From: Petter Reinholdtsen
Subject: [Gnash] [patch] Fix build error because of invalid #warn
Date: Sat, 08 Jul 2006 09:21:00 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (usg-unix-v)

When I try to build the current gnash source, it fail with this error:

   i386-linux-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./swf
     -I.. -I../libbase -I.. -I/usr/include -I/usr/include/SDL
     -I/usr/include/SDL -I/usr/include/gtk-2.0
     -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0
     -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
     --I/usr/include/atk-1.0 -I/usr/include/libxml2
     --DQT_THREAD_SUPPORT -D_REENTRANT -g -O2 -ansi -Wall -W -Wall
     --Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -MT
     -Function.lo -MD -MP -MF .deps/Function.Tpo -c Function.cpp -fPIC
     --DPIC -o .libs/Function.o
  Function.cpp:41:2: invalid preprocessing directive #warn
  make[2]: *** [Function.lo] Fejl 1
  make[2]: Leaving directory 
`/home/pere/src/debian/flash/gnash-cvs/gnash/server'
  make[1]: *** [all-recursive] Fejl 1

It is easily fixed using this patch:

Index: server/Function.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/Function.cpp,v
retrieving revision 1.27
diff -u -3 -p -r1.27 Function.cpp
--- server/Function.cpp 7 Jul 2006 13:49:40 -0000       1.27
+++ server/Function.cpp 8 Jul 2006 07:20:12 -0000
@@ -38,7 +38,7 @@

 // TO BE REMOVED

-#warn Do not build this file, is obsoleted
+#warning Do not build this file, is obsoleted


 namespace gnash {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]