ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] Broken build on GCC 4.1.2

From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Wed, 25 Apr 2007 22:41:36 +0200 (CEST)
Hi,

Revision 21563 breaks my build on several places, using GCC 4.1.2 on
Debian lenny/sid. I already hacked packet-ipsec.c, but next up is
packet-bpdu.c, reporting:

cc1: warnings being treated as errors
packet-bpdu.c: In function 'dissect_bpdu':
packet-bpdu.c:252: warning: pointer of type 'void *' used in arithmetic
packet-bpdu.c:252: warning: dereferencing 'void *' pointer
packet-bpdu.c:252: error: void value not ignored as it ought to be
packet-bpdu.c:252: warning: pointer of type 'void *' used in arithmetic
packet-bpdu.c:252: warning: dereferencing 'void *' pointer
packet-bpdu.c:252: error: void value not ignored as it ought to be
packet-bpdu.c:253: warning: pointer of type 'void *' used in arithmetic
packet-bpdu.c:253: warning: dereferencing 'void *' pointer
packet-bpdu.c:253: error: void value not ignored as it ought to be
packet-bpdu.c:253: warning: pointer of type 'void *' used in arithmetic
packet-bpdu.c:253: warning: dereferencing 'void *' pointer
packet-bpdu.c:253: error: void value not ignored as it ought to be
packet-bpdu.c:254: warning: pointer of type 'void *' used in arithmetic
packet-bpdu.c:254: warning: dereferencing 'void *' pointer
packet-bpdu.c:254: error: void value not ignored as it ought to be
packet-bpdu.c:254: warning: pointer of type 'void *' used in arithmetic
packet-bpdu.c:254: warning: dereferencing 'void *' pointer
packet-bpdu.c:254: error: void value not ignored as it ought to be
packet-bpdu.c:258: warning: pointer of type 'void *' used in arithmetic
packet-bpdu.c:258: warning: dereferencing 'void *' pointer
packet-bpdu.c:258: error: switch quantity not an integer
packet-bpdu.c:281: warning: pointer of type 'void *' used in arithmetic
packet-bpdu.c:281: warning: dereferencing 'void *' pointer
packet-bpdu.c:281: error: invalid use of void expression
make[1]: *** [libcleandissectors_la-packet-bpdu.lo] Error 1

I think this is going to go on and on.

Thanx,
Jaap