]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix build errors in rev.13012
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 2 Oct 2013 03:41:06 +0000 (21:41 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 2 Oct 2013 03:41:06 +0000 (21:41 -0600)
static functions defined in headers (.h) must be used in all .cc which
include them. Functions which are not always used must be defined as
inline instead.

This resolves warning: 'const char* LogTime()' defined but not used

helpers/negotiate_auth/kerberos/negotiate_kerberos.h

index 82277e160772f80af8af70d7e6da6bdfc256d0dc..49ead4ed4cf56df7f219c8d7751b4a5fb2adb925 100644 (file)
@@ -102,11 +102,9 @@ extern "C" {
 
 char *gethost_name(void);
 
-static const char *LogTime(void);
-
 static const unsigned char ntlmProtocol[] = {'N', 'T', 'L', 'M', 'S', 'S', 'P', 0};
 
-static const char *
+inline const char *
 LogTime()
 {
     struct tm *tm;