Package: vertex
Severity: normal
Tags: patch
When building 'vertex' on amd64 with gcc-4.0,
I get the following error:
c++ -c disk.cpp -O2 -DHAVE_IMLIB `gtk-config --cflags` -D__cplusplus
-Dc_plusplus
disk.cpp: In function 'int ISPATHABSOLUTE(const char*)':
disk.cpp:133: error: invalid cast from type 'char' to type 'char'
disk.cpp:133: error: invalid cast from type 'char' to type 'char'
make[2]: *** [disk.o] Error 1
make[2]: Leaving directory `/vertex-0.1.14/vertex'
With the attached patch 'vertex' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/vertex-0.1.14/vertex/disk.cpp ./vertex/disk.cpp
--- ../tmp-orig/vertex-0.1.14/vertex/disk.cpp 2003-04-30 01:45:12.000000000
+0200
+++ ./vertex/disk.cpp 2005-03-03 19:03:28.099356431 +0100
@@ -128,12 +128,7 @@
if(path == NULL)
return(0);
- // Dan S: typecast is due to const.
-#if defined(__cplusplus) || defined(c_plusplus)
- while(ISBLANK(reinterpret_cast<char>(*path)))
-#else
while(ISBLANK(*path))
-#endif
path++;
return(*path == DIR_DELIMINATOR);
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]