Message ID | 1412958858-19974-1-git-send-email-toby.gray@realvnc.com |
---|---|
State | Accepted |
Headers | show |
On Fri, Oct 10, 2014 at 05:34:18PM +0100, Toby Gray wrote: > 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. Thanks, applied.
diff --git a/src/utils/wpa_debug.c b/src/utils/wpa_debug.c index 68cbace..bf0833a 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; }
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 | 2 ++ 1 file changed, 2 insertions(+)