Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft compiler warning C4389 using warning level 4 #12

Open
thradams opened this issue Apr 15, 2021 · 0 comments
Open

Microsoft compiler warning C4389 using warning level 4 #12

thradams opened this issue Apr 15, 2021 · 0 comments

Comments

@thradams
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant