From 4877e1fcf909fc8fbb6489bbf35691a744db9e0d Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 3 Nov 2011 18:02:28 +0200 Subject: [PATCH] wpa_cli: Fix compiler warnings on unused functions Some of the parameter completion functions are only used if CONFIG_P2P=y. Signed-hostap: Jouni Malinen --- wpa_supplicant/wpa_cli.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c index 4538ee37f..f14906cbe 100644 --- a/wpa_supplicant/wpa_cli.c +++ b/wpa_supplicant/wpa_cli.c @@ -184,6 +184,7 @@ static void cli_txt_list_del_addr(struct dl_list *txt_list, const char *txt) } +#ifdef CONFIG_P2P static void cli_txt_list_del_word(struct dl_list *txt_list, const char *txt) { const char *end; @@ -199,6 +200,7 @@ static void cli_txt_list_del_word(struct dl_list *txt_list, const char *txt) cli_txt_list_del(txt_list, buf); os_free(buf); } +#endif /* CONFIG_P2P */ static int cli_txt_list_add(struct dl_list *txt_list, const char *txt) @@ -220,6 +222,7 @@ static int cli_txt_list_add(struct dl_list *txt_list, const char *txt) } +#ifdef CONFIG_P2P static int cli_txt_list_add_addr(struct dl_list *txt_list, const char *txt) { u8 addr[ETH_ALEN]; @@ -248,6 +251,7 @@ static int cli_txt_list_add_word(struct dl_list *txt_list, const char *txt) os_free(buf); return ret; } +#endif /* CONFIG_P2P */ static char ** cli_txt_list_array(struct dl_list *txt_list)