mirror of
https://github.com/libssh2/libssh2.git
synced 2025-11-21 14:00:51 +03:00
build: silence bogus C4127 warnings with MSVS 2013 and earlier (#819)
E.g.: `channel.c(370): warning C4127: conditional expression is constant` Ref: https://ci.appveyor.com/project/libssh2org/libssh2/builds/46437333/job/5rak1vcl9hue31ei#L190
This commit is contained in:
@@ -39,6 +39,11 @@
|
|||||||
* OF SUCH DAMAGE.
|
* OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* Disable warnings: C4127: conditional expression is constant */
|
||||||
|
#if defined(_MSC_VER) && _MSC_VER < 1900
|
||||||
|
#pragma warning(disable:4127)
|
||||||
|
#endif
|
||||||
|
|
||||||
#define LIBSSH2_LIBRARY
|
#define LIBSSH2_LIBRARY
|
||||||
#include "libssh2_config.h"
|
#include "libssh2_config.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user