1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 19:52:20 +00:00

dtmail: warning: 'DtMailBoolean' is promoted to (int)

Fix this warning:

RFCTransport.C: In function 'long unsigned int writeToFileDesc(const char*, int,
 __va_list_tag*)':
RFCTransport.C:91: warning: 'DtMailBoolean' is promoted to 'int' when passed thr
ough '...'
RFCTransport.C:91: warning: (so you should pass 'int' not 'DtMailBoolean' to 'va
_arg')
RFCTransport.C:91: note: if this code is reached, the program will abort
This commit is contained in:
Marcin Cieslak 2012-09-24 13:36:15 +02:00 committed by Jon Trulson
parent 91bfe1e4dc
commit e3564643ad

View file

@ -88,7 +88,7 @@ writeToFileDesc(const char * buf, int len, va_list args)
{
int * fds = va_arg(args, int *);
int cnt = va_arg(args, int);
DtMailBoolean strip = va_arg(args, DtMailBoolean);
DtMailBoolean strip = (DtMailBoolean)va_arg(args, int);
unsigned long saveErrno = 0; // Initially no error recorded