]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
console: Fix compiler warning
authorDavid Sommerseth <davids@openvpn.net>
Fri, 11 Nov 2016 13:30:07 +0000 (14:30 +0100)
committerGert Doering <gert@greenie.muc.de>
Sat, 12 Nov 2016 15:09:05 +0000 (16:09 +0100)
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>
src/openvpn/console.h

index 41f2b8c248533d45f46f13e7f5c15f0ebd628752..ec32cf6491f1b0f97146cde0693883a3f65166bf 100644 (file)
@@ -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)
 {