Avoid more warnings

This commit is contained in:
Pierre Pronchery 2015-12-29 01:02:59 +01:00
parent c8ad5f30fd
commit 2b5404c909

View File

@ -1857,6 +1857,7 @@ static char * _request_attention_unsupported(Hayes * hayes,
ModemRequest * request)
{
HayesRequest * hrequest = request->unsupported.request;
(void) hayes;
if(strcmp(request->unsupported.modem, plugin.name) != 0)
return NULL;
@ -2706,6 +2707,7 @@ static HayesCommandStatus _on_request_generic(HayesCommand * command,
{
char const * answer;
char const * p;
(void) priv;
if(status != HCS_ACTIVE)
return status;
@ -2930,6 +2932,7 @@ static void _on_code_call_error(HayesChannel * channel, char const * answer)
Hayes * hayes = channel->hayes;
HayesCommand * command = (channel->queue != NULL)
? channel->queue->data : NULL;
(void) answer;
if(command != NULL)
hayes_command_set_status(command, HCS_ERROR);
@ -3718,6 +3721,7 @@ static void _on_code_connect(HayesChannel * channel, char const * answer)
int wfd;
int rfd;
GError * error = NULL;
(void) answer;
if(command != NULL) /* XXX else report error? */
hayes_command_set_status(command, HCS_SUCCESS);