ORBit, OAF fails to compile with gcc 2.95.2



Hi, this may count as a minor bug.  The latest releases of OAF 0.4.0 
fails to compile with gcc 2.95.2, with the following error:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I../liboaf -I../liboaf -I/opt/gnome/installed/lib/glib/include -I/opt/gnome/installed/include -I/opt/gnome/installed/lib/glib/include -I/opt/gnome/installed/include -DVERSION=\"0.4.0\" -O2 -fpermissive -O2 -fpermissive -Wall -Wno-uninitialized -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -Wsign-promo -Werror -c  -fPIC -DPIC oaf-stubs.c -o oaf-stubs.lo
cc1: warnings being treated as errors
In file included from /usr/include/string.h:346,
		 from oaf-stubs.c:5:
		 /usr/include/bits/string2.h: In function `__strcpy_small':
		 /usr/include/bits/string2.h:419: warning: pointer of type `void *' used in arithmetic
		 /usr/include/bits/string2.h:427: warning: pointer of type `void *' used in arithmetic
		 /usr/include/bits/string2.h:432: warning: pointer of type `void *' used in arithmetic
		 /usr/include/bits/string2.h:437: warning: pointer of type `void *' used in arithmetic
		 /usr/include/bits/string2.h:439: warning: pointer of type `void *' used in arithmetic
		 /usr/include/bits/string2.h:444: warning: pointer of type `void *' used in arithmetic


It seems gcc does not allow these warnings and refuses to continue.
System: Red Hat 6.2 with gcc 2.95.2

-- 
Li-Cheng Tai (Andy Tai)                       e-mail: atai@atai.org

Free Software:  the software by the people, of the people and for the people.
Develop! Share! Enhance! Enjoy!




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