Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #if _MSC_VER >= 1600
- #pragma warning(disable:4005)
- #define EMSGSIZE WSAEMSGSIZE
- #define EAFNOSUPPORT WSAEAFNOSUPPORT
- #define EWOULDBLOCK WSAEWOULDBLOCK
- #define EPROTONOSUPPORT WSAEPROTONOSUPPORT
- #define ECONNRESET WSAECONNRESET
- #define EINPROGRESS WSAEINPROGRESS
- #define ENOBUFS WSAENOBUFS
- #define ECONNREFUSED WSAECONNREFUSED
- #define EOPNOTSUPP WSAEOPNOTSUPP
- #pragma warning(default:4005)
- #endif
- This suspicious code was found in PostgreSQL project by PVS-Studio static code analyzer.
- Warning message is:
- V665 Possibly, the usage of '#pragma warning(default: X)' is incorrect in this context. The '#pragma warning(push/pop)' should be used instead. Check lines: 303, 313. postgres pg_config_os.h 313
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment