1
0
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:
Viktor Szakats
2023-03-08 13:59:59 +01:00
committed by GitHub
parent 9ad1258f1f
commit 10c8beab1f

View File

@@ -39,6 +39,11 @@
* 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
#include "libssh2_config.h"