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:
parent
91bfe1e4dc
commit
e3564643ad
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue