Avoid warnings on unused function/variables if debug is disabled
CONFIG_NO_STDOUT_DEBUG removes wpa_printf() calls, so need to ifdef some function and variable definitions to avoid compiler warnings.
This commit is contained in:
parent
aa53509ffe
commit
ffd2c8cd4d
3 changed files with 6 additions and 0 deletions
|
@ -34,6 +34,7 @@ struct eap_wsc_data {
|
|||
};
|
||||
|
||||
|
||||
#ifndef CONFIG_NO_STDOUT_DEBUG
|
||||
static const char * eap_wsc_state_txt(int state)
|
||||
{
|
||||
switch (state) {
|
||||
|
@ -53,6 +54,7 @@ static const char * eap_wsc_state_txt(int state)
|
|||
return "?";
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_NO_STDOUT_DEBUG */
|
||||
|
||||
|
||||
static void eap_wsc_state(struct eap_wsc_data *data, int state)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue