Wireshark-users: Re: [Wireshark-users] comments/rants wrt my (very first) dissector
From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Tue, 24 Feb 2009 18:27:02 +0100
Hi,

Add "_U_" to the parameters. See other dissectors for examples.

Thanx,
Jaap

Toralf Förster wrote:
Hello,

I attached my first real attempt of writing a dissector, designed for the Lotus Notes Sametime protocol (just for fun of course). Although it isn't far away from being ready b/c there isn't a format specification available I derived sth. from the meanwhile project.

Thx for help, especially to get rid of these warnings :

tfoerste@n22 ~/devel/wireshark/epan/dissectors $ make packet-sametime.o
ccache gcc -DHAVE_CONFIG_H -I. -I../.. -I./../.. -I./.. -I/usr/local/include '-DPLUGIN_DIR="/usr/local/lib/wireshark/plugins/1.1.3"' -DINET6 -D_U_="__attribute__((unused))" -g -O2 -Wall -W -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith -Wno-pointer-sign -Wcast-align -Wformat-security -I/usr/local/include -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -MT packet-sametime.o -MD -MP -MF .deps/packet-sametime.Tpo -c -o packet-sametime.o packet-sametime.c
packet-sametime.c: In function 'get_sametime_message_len':
packet-sametime.c:387: warning: unused parameter 'pinfo'
packet-sametime.c: In function 'sametime_stats_tree_packet':
packet-sametime.c:833: warning: unused parameter 'pinfo'
packet-sametime.c:833: warning: unused parameter 'edt'
mv -f .deps/packet-sametime.Tpo .deps/packet-sametime.Po