From: Amos Jeffries Date: Wed, 2 Oct 2013 03:41:06 +0000 (-0600) Subject: Fix build errors in rev.13012 X-Git-Tag: SQUID_3_5_0_1~619 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d779e7111a296a028da80f4ab44aff1989bfbf8c;p=thirdparty%2Fsquid.git Fix build errors in rev.13012 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 --- diff --git a/helpers/negotiate_auth/kerberos/negotiate_kerberos.h b/helpers/negotiate_auth/kerberos/negotiate_kerberos.h index 82277e1607..49ead4ed4c 100644 --- a/helpers/negotiate_auth/kerberos/negotiate_kerberos.h +++ b/helpers/negotiate_auth/kerberos/negotiate_kerberos.h @@ -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;