Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: [Ethereal-dev] packet-aim-...: errors, as MSVC doesn't allow empty arrays

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Ulf Lamping" <ulf.lamping@xxxxxx>
Date: Tue, 23 Mar 2004 15:21:36 +0100
Hi List!

Getting MSVC errors on latest CVS (updated this morning).

Please do one of the following:

-put a dummy entry in these arrays, or
-comment these arrays and their registrations (until actually used)


With MSVC, I got lot's of errors as empty arrays are used:

packet-aim-adverts.c
packet-aim-adverts.c(92) : error C2059: Syntaxfehler : '}'
packet-aim-adverts.c(103) : warning C4034: sizeof gibt 0 zurueck
packet-aim-admin.c
packet-aim-bos.c
packet-aim-buddylist.c
packet-aim-chat.c
packet-aim-chat.c(133) : error C2059: Syntaxfehler : '}'
packet-aim-chat.c(144) : warning C4034: sizeof gibt 0 zurueck
packet-aim-chatnav.c
packet-aim-chatnav.c(82) : error C2059: Syntaxfehler : '}'
packet-aim-chatnav.c(92) : warning C4034: sizeof gibt 0 zurueck
packet-aim-directory.c
packet-aim-directory.c(68) : error C2059: Syntaxfehler : '}'
packet-aim-directory.c(72) : error C2059: Syntaxfehler : '}'
packet-aim-directory.c(77) : warning C4034: sizeof gibt 0 zurueck
packet-aim-directory.c(78) : warning C4034: sizeof gibt 0 zurueck
packet-aim-generic.c
packet-aim-icq.c
packet-aim-icq.c(91) : error C2059: Syntaxfehler : '}'
packet-aim-icq.c(102) : warning C4034: sizeof gibt 0 zurueck
packet-aim-invitation.c
packet-aim-invitation.c(70) : error C2059: Syntaxfehler : '}'
packet-aim-invitation.c(81) : warning C4034: sizeof gibt 0 zurueck
packet-aim-location.c
packet-aim-messaging.c
packet-aim-messaging.c(166) : error C2059: Syntaxfehler : '}'
packet-aim-messaging.c(177) : warning C4034: sizeof gibt 0 zurueck
packet-aim-oft.c
packet-aim-oft.c(55) : error C2059: Syntaxfehler : '}'
packet-aim-oft.c(59) : error C2059: Syntaxfehler : '}'
packet-aim-oft.c(65) : warning C4034: sizeof gibt 0 zurueck
packet-aim-oft.c(66) : warning C4034: sizeof gibt 0 zurueck
packet-aim-popup.c
packet-aim-popup.c(70) : error C2059: Syntaxfehler : '}'
packet-aim-popup.c(81) : warning C4034: sizeof gibt 0 zurueck
packet-aim-signon.c
packet-aim-ssi.c
packet-aim-stats.c
packet-aim-stats.c(73) : error C2059: Syntaxfehler : '}'
packet-aim-stats.c(84) : warning C4034: sizeof gibt 0 zurueck
packet-aim-translate.c
packet-aim-translate.c(70) : error C2059: Syntaxfehler : '}'
packet-aim-translate.c(80) : warning C4034: sizeof gibt 0 zurueck
packet-aim-userlookup.c
packet-aim-userlookup.c(89) : error C2059: Syntaxfehler : '}'
packet-aim-userlookup.c(99) : warning C4034: sizeof gibt 0 zurueck

Regards, ULFL
_____________________________________________________________________
Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Netsky.A-K!
Kostenfrei fuer alle FreeMail Nutzer. http://f.web.de/?mc=021157