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 <davids@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
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 <gert@greenie.muc.de>
* 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)
{