[sslh] Compiler warnings

Matt Smith sslh at xtaz.co.uk
Tue May 3 08:23:35 UTC 2016


Just compiled the latest version from git that adds the transparency 
patch and just thought you would like to know that it shows 4 compiler 
warnings on clang whereas before the code compiled completely cleanly.

cc -Wall -O2 -I/usr/local/include -DENABLE_REGEX -DLIBCONFIG -c common.c
common.c:183:37: warning: incompatible pointer types initializing 
'struct sockaddr_in *' with an expression of type 'struct sockaddr *' 
[-Wincompatible-pointer-types]
struct sockaddr_in *from_addr = from.ai_addr;
common.c:184:37: warning: incompatible pointer types initializing 
'struct sockaddr_in *' with an expression of type 'struct sockaddr *' 
[-Wincompatible-pointer-types]
struct sockaddr_in *ifa_addr = ifa->ifa_addr;
common.c:190:38: warning: incompatible pointer types initializing 
'struct sockaddr_in6 *' with an expression of type 'struct sockaddr *' 
[-Wincompatible-pointer-types]
struct sockaddr_in6 *from_addr = from.ai_addr;
common.c:191:38: warning: incompatible pointer types initializing 
'struct sockaddr_in6 *' with an expression of type 'struct sockaddr *' 
[-Wincompatible-pointer-types]
struct sockaddr_in6 *ifa_addr = ifa->ifa_addr;
4 warnings generated.

Cheers, Matt



More information about the sslh mailing list