]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix warning about unused parameter if CONFIG_DEBUG_FILE is not defined.
authorToby Gray <toby.gray@realvnc.com>
Fri, 10 Oct 2014 16:34:18 +0000 (17:34 +0100)
committerJouni Malinen <j@w1.fi>
Sun, 12 Oct 2014 13:49:12 +0000 (16:49 +0300)
This change adds a cast to void to indicate that the path parameter is
unused when CONFIG_DEBUG_FILE is not defined. This fixes a compiler
warning about unused parameters.

Signed-off-by: Toby Gray <toby.gray@realvnc.com>
src/utils/wpa_debug.c

index 68cbace6eba9128b21c894918d9e8de03fec9463..bf0833ade7a66d60bae26c491fe8dcbfc08a57d4 100644 (file)
@@ -555,6 +555,8 @@ int wpa_debug_open_file(const char *path)
 #ifndef _WIN32
        setvbuf(out_file, NULL, _IOLBF, 0);
 #endif /* _WIN32 */
+#else /* CONFIG_DEBUG_FILE */
+       (void)path;
 #endif /* CONFIG_DEBUG_FILE */
        return 0;
 }