Package: zvbi
Severity: normal
Tags: patch
When building 'zvbi' on amd64 with gcc-4.0,
I get the following error:
packet.c:1156: warning: pointer targets in passing argument 1 of 'strncpy'
differ in signedness
packet.c: In function 'parse_bsd':
packet.c:1265: warning: pointer targets in passing argument 1 of 'strncpy'
differ in signedness
packet.c:1265: warning: pointer targets in passing argument 1 of 'strncpy'
differ in signedness
packet.c:1351: warning: pointer targets in passing argument 1 of 'strncpy'
differ in signedness
packet.c:1351: warning: pointer targets in passing argument 1 of 'strncpy'
differ in signedness
packet.c: In function 'parse_28_29':
packet.c:1844: error: invalid storage class for function 'bits'
packet.c:1844: warning: no previous prototype for 'bits'
make[5]: *** [packet.lo] Error 1
make[5]: Leaving directory `/zvbi-0.2.11/src'
With the attached patch 'zvbi' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/zvbi-0.2.11/src/exp-gfx.c ./src/exp-gfx.c
--- ../tmp-orig/zvbi-0.2.11/src/exp-gfx.c 2004-12-13 08:13:10.000000000
+0100
+++ ./src/exp-gfx.c 2005-01-14 07:57:24.610595598 +0100
@@ -1120,7 +1120,7 @@
}
/* avoid possible longjmp breakage due to libpng ugliness */
- { static int do_write() {
+ { int do_write() {
if (setjmp(png_ptr->jmpbuf))
return 1;
diff -urN ../tmp-orig/zvbi-0.2.11/src/packet.c ./src/packet.c
--- ../tmp-orig/zvbi-0.2.11/src/packet.c 2004-11-07 01:08:48.000000000
+0100
+++ ./src/packet.c 2005-01-14 07:58:26.654585824 +0100
@@ -1839,7 +1839,7 @@
vt_extension *ext;
int i, j, err = 0;
- static int
+ int
bits(int count)
{
int r, n;
diff -urN ../tmp-orig/zvbi-0.2.11/src/teletext.c ./src/teletext.c
--- ../tmp-orig/zvbi-0.2.11/src/teletext.c 2004-12-13 08:17:10.000000000
+0100
+++ ./src/teletext.c 2005-01-14 07:58:47.162616116 +0100
@@ -1198,7 +1198,7 @@
struct pex26 *pt, ptmp;
int pdc_hr;
- static void
+ void
flush(int column)
{
int row = inv_row + active_row;
@@ -1358,7 +1358,7 @@
active_column = column;
}
- static void
+ void
flush_row(void)
{
if (type == OBJ_TYPE_PASSIVE || type == OBJ_TYPE_ADAPTIVE)
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]