mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-29 02:38:22 -05:00
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 <toby.gray@realvnc.com>
This commit is contained in:
parent
6503deb9ac
commit
f5c649b769
@ -555,6 +555,8 @@ int wpa_debug_open_file(const char *path)
|
|||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
setvbuf(out_file, NULL, _IOLBF, 0);
|
setvbuf(out_file, NULL, _IOLBF, 0);
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
#else /* CONFIG_DEBUG_FILE */
|
||||||
|
(void)path;
|
||||||
#endif /* CONFIG_DEBUG_FILE */
|
#endif /* CONFIG_DEBUG_FILE */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user