Subject: Windows Warnings

Windows Warnings

From: Narayan Subramanian <>
Date: Wed, 26 Jun 2019 10:45:40 +0000

Though Windows builds fine, there are SEVERAL build warnings. Is this normal?

FYI, I am using Visual Studio 2017 and libssh2 1.9.

I have attached the log file.
Most of the warnings are data conversion / truncation warnings. E.g:

E:\libssh2\src\knownhost.c(174): warning C4267: 'function': conversion from 'size_t' to 'unsigned int', possible loss of data

These shouldn’t be difficult to fix. Should we work towards fixing these? I don’t mind contributing towards this. These may be reviewed and tested.


Received on 2019-06-26