From: David Sommerseth Date: Fri, 11 Nov 2016 13:30:07 +0000 (+0100) Subject: console: Fix compiler warning X-Git-Tag: v2.4_beta1~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14cb1639f7694cdd461bace5e273acd7722cd3cf;p=thirdparty%2Fopenvpn.git console: Fix compiler warning Building with -O2, the compiler warned about query_user_SINGLE() being declared and not used in console.c. This function, defined in console.h, should have been declared as 'static inline'. This also removes that warning. Signed-off-by: David Sommerseth Acked-by: Gert Doering Message-Id: <1478871007-25998-1-git-send-email-davids@openvpn.net> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg13005.html Signed-off-by: Gert Doering --- diff --git a/src/openvpn/console.h b/src/openvpn/console.h index 41f2b8c24..ec32cf649 100644 --- a/src/openvpn/console.h +++ b/src/openvpn/console.h @@ -106,7 +106,7 @@ static bool query_user_exec () * to be called at start-up initialization of OpenVPN. * */ -static bool query_user_SINGLE (char *prompt, size_t prompt_len, +static inline bool query_user_SINGLE (char *prompt, size_t prompt_len, char *resp, size_t resp_len, bool echo) {