http://bugzilla.spamassassin.org/show_bug.cgi?id=3452





------- Additional Comments From [EMAIL PROTECTED]  2004-05-31 18:30 -------
Subject: Re:  New: compiler warnings in VC++ (Windows) spamc build

> Here is what I get when I add a /W4 switch to the VC++ 5.0 options in
spamc

I'll assume/hope you meant VC 6.0; 5.0 is ancient.  Error/warning detection
is considerably better in 6.0 than 5.0.


> replace\getopt.c(36) : warning C4100: 'optstr' : unreferenced formal
parameter
> replace\getopt.c(36) : warning C4100: 'argc' : unreferenced formal
parameter

I would suggest turning this warning off with an appropriate command line
option or pragma.  Alternately the approved MS tradition is to use

    UNREFERENCED_PARAMETER (argc);

to get around this.  Of course that only works if you include "windows.h",
which you may not be doing.

> utils.c(75) : warning C4013: 'read' undefined; assuming extern returning
int
> utils.c(212) : warning C4013: 'write' undefined; assuming extern returning
int

Assuming those aren't local functions, something needs an include of "io.h".

        Loren





------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to