Avoid a few warnings

This commit is contained in:
Pierre Pronchery 2017-09-13 22:16:10 +02:00
parent 38c5a38230
commit e5ce5ab8f7
2 changed files with 5 additions and 0 deletions

View File

@ -584,6 +584,7 @@ static void _ask_password_on_response(GtkWidget * widget, gint response,
char const * password;
size_t i;
WPAChannel * channel = &wpa->channel[0];
(void) widget;
if(response != GTK_RESPONSE_OK
|| (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 ess[] = "ESS";
char const ibss[] = "IBSS";
(void) wpa;
/* FIXME parse more consistently */
if(strncmp(wep, p, sizeof(wep) - 1) == 0)

View File

@ -188,6 +188,8 @@ static int _wifibrowser(char const * configfile, char const * interface)
/* error */
static int _error(Panel * panel, char const * message, int ret)
{
(void) panel;
fputs(PROGNAME ": ", stderr);
perror(message);
return ret;
@ -236,6 +238,7 @@ static void _wifibrowser_on_enabled_toggled(GtkCellRenderer * renderer,
GtkTreePath * p;
GtkTreeIter iter;
gboolean enabled;
(void) renderer;
if((p = gtk_tree_path_new_from_string(path)) == NULL)
return;