smtp-client icon indicating copy to clipboard operation
smtp-client copied to clipboard

Microsoft compiler warning C4389 using warning level 4

Open thradams opened this issue 3 years ago • 0 comments

I had to disable warning warning C4389: '==': signed/unsigned mismatch around the macro FD_SET.

This is the new code to disable this warning.

#ifdef SMTP_IS_WINDOWS #pragma warning( push ) #pragma warning( disable : 4389 ) //warning C4389: '==': signed/unsigned mismatch FD_SET(smtp->sock, &readfds); #pragma warning( pop ) #else FD_SET(smtp->sock, &readfds); #endif

thradams avatar Apr 15 '21 18:04 thradams