From e3564643ad6864624fbbe277c78bbc1288d414f3 Mon Sep 17 00:00:00 2001 From: Marcin Cieslak Date: Mon, 24 Sep 2012 13:36:15 +0200 Subject: [PATCH] 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 --- cde/programs/dtmail/libDtMail/RFC/RFCTransport.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/programs/dtmail/libDtMail/RFC/RFCTransport.C b/cde/programs/dtmail/libDtMail/RFC/RFCTransport.C index eab791cbe..7659ff847 100644 --- a/cde/programs/dtmail/libDtMail/RFC/RFCTransport.C +++ b/cde/programs/dtmail/libDtMail/RFC/RFCTransport.C @@ -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