Ethereal-dev: Re: [Ethereal-dev] new MSVC warnings in packet-cms.c and packet-image-jfif.c

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Sat, 30 Oct 2004 02:27:58 -0700
Ulf Lamping wrote:

packet-cms.c(337) : warning C4013: 'dissect_cms_OCTET_STRING' undefiniert; Annahme: extern mit Rueckgabetyp int

The routine that calls "dissect_cms_OCTET_STRING()" is generated from CMS.cnf, and the routine itself is also generated by asn2eth; either asn2eth needs to generate a forward declaration of "dissect_cms_OCTET_STRING()" or CMS.cnf needs to put one into that routine.

asn2eth also generates some warnings:

:: UserWarning: The same field names for different types. Explicit field renaming is recommended.
contentType
 contentType1   ContentType      EncryptedContentInfo/contentType
 contentType    T_contentType    ContentInfo/contentType

packet-image-jfif.c(662) : warning C4018: '<' : Konflikt zwischen signed und unsigned packet-image-jfif.c(675) : warning C4018: '>' : Konflikt zwischen signed und unsigned packet-image-jfif.c(724) : warning C4018: '<' : Konflikt zwischen signed und unsigned

(How *do* you say "signed" and "unsigned" in German?)

I've checked in a fix.