From: Toby Gray Date: Fri, 10 Oct 2014 16:34:18 +0000 (+0100) Subject: Fix warning about unused parameter if CONFIG_DEBUG_FILE is not defined. X-Git-Tag: hostap_2_4~1329 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5c649b769987bee90efcd9d24db978b5d21c8ab;p=thirdparty%2Fhostap.git Fix warning about unused parameter if CONFIG_DEBUG_FILE is not defined. 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 --- diff --git a/src/utils/wpa_debug.c b/src/utils/wpa_debug.c index 68cbace6e..bf0833ade 100644 --- a/src/utils/wpa_debug.c +++ b/src/utils/wpa_debug.c @@ -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; }