Avoid a few warnings
This commit is contained in:
parent
38c5a38230
commit
e5ce5ab8f7
|
@ -584,6 +584,7 @@ static void _ask_password_on_response(GtkWidget * widget, gint response,
|
||||||
char const * password;
|
char const * password;
|
||||||
size_t i;
|
size_t i;
|
||||||
WPAChannel * channel = &wpa->channel[0];
|
WPAChannel * channel = &wpa->channel[0];
|
||||||
|
(void) widget;
|
||||||
|
|
||||||
if(response != GTK_RESPONSE_OK
|
if(response != GTK_RESPONSE_OK
|
||||||
|| (password = gtk_entry_get_text(GTK_ENTRY(
|
|| (password = gtk_entry_get_text(GTK_ENTRY(
|
||||||
|
@ -1679,6 +1680,7 @@ static char const * _read_scan_results_flag(WPA * wpa, char const * p,
|
||||||
char const preauth[] = "preauth";
|
char const preauth[] = "preauth";
|
||||||
char const ess[] = "ESS";
|
char const ess[] = "ESS";
|
||||||
char const ibss[] = "IBSS";
|
char const ibss[] = "IBSS";
|
||||||
|
(void) wpa;
|
||||||
|
|
||||||
/* FIXME parse more consistently */
|
/* FIXME parse more consistently */
|
||||||
if(strncmp(wep, p, sizeof(wep) - 1) == 0)
|
if(strncmp(wep, p, sizeof(wep) - 1) == 0)
|
||||||
|
|
|
@ -188,6 +188,8 @@ static int _wifibrowser(char const * configfile, char const * interface)
|
||||||
/* error */
|
/* error */
|
||||||
static int _error(Panel * panel, char const * message, int ret)
|
static int _error(Panel * panel, char const * message, int ret)
|
||||||
{
|
{
|
||||||
|
(void) panel;
|
||||||
|
|
||||||
fputs(PROGNAME ": ", stderr);
|
fputs(PROGNAME ": ", stderr);
|
||||||
perror(message);
|
perror(message);
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -236,6 +238,7 @@ static void _wifibrowser_on_enabled_toggled(GtkCellRenderer * renderer,
|
||||||
GtkTreePath * p;
|
GtkTreePath * p;
|
||||||
GtkTreeIter iter;
|
GtkTreeIter iter;
|
||||||
gboolean enabled;
|
gboolean enabled;
|
||||||
|
(void) renderer;
|
||||||
|
|
||||||
if((p = gtk_tree_path_new_from_string(path)) == NULL)
|
if((p = gtk_tree_path_new_from_string(path)) == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user