This month's Index
Subject: Compiler warnings
From: Seth Willits <seth_at_freaksw.com>
Date: Wed, 28 Nov 2012 14:42:07 -0800
strlen() returns size_t (unsigned long on OS X for instance) but it's being passed directly to unsigned int parameters in some places so warnings are generated about the implicit precision loss.
For example in the define for libssh2_channel_exec. Pretty much everywhere strlen() is used in the header I think. They just need to be explicitly typecasted to (unsigned int).
-- Seth Willits _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-develReceived on 2012-11-28