From 76202aed2362d9029b93487900351c594aebf8e1 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 11 Dec 2011 18:13:51 +0200 Subject: [PATCH] Fix compiler warning with CONFIG_NO_STDOUT_DEBUG=y Signed-hostap: Jouni Malinen --- wpa_supplicant/scan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c index 8e9728348..4abc9dada 100644 --- a/wpa_supplicant/scan.c +++ b/wpa_supplicant/scan.c @@ -1168,6 +1168,7 @@ static int wpa_scan_result_wps_compar(const void *a, const void *b) static void dump_scan_res(struct wpa_scan_results *scan_res) { +#ifndef CONFIG_NO_STDOUT_DEBUG size_t i; if (scan_res->res == NULL || scan_res->num == 0) @@ -1192,6 +1193,7 @@ static void dump_scan_res(struct wpa_scan_results *scan_res) r->noise, r->level, r->flags); } } +#endif /* CONFIG_NO_STDOUT_DEBUG */ }