dtmail: warning: 'DtMailBoolean' is promoted to (int)
authorMarcin Cieslak <saper@saper.info>
Mon, 24 Sep 2012 11:36:15 +0000 (13:36 +0200)
committerJon Trulson <jon@radscan.com>
Tue, 25 Sep 2012 00:26:27 +0000 (18:26 -0600)
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

cde/programs/dtmail/libDtMail/RFC/RFCTransport.C

index eab791cbef00120c1840d94db1142e7f7c54aa1b..7659ff847db1a785e620272342e077cf3ad1014d 100644 (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