Skip to content

Commit

Permalink
Fix compiler warning about incompatible return types
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Oct 10, 2017
1 parent fbde410 commit fec1e8f
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/sequencer_alsa/sequencer_alsa.i
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ event_input(snd_seq_t *handle)
if (err == -EAGAIN)
{
Py_INCREF(Py_None);
return Py_None;
return (snd_seq_event_t*)Py_None;
}
if (err < 0)
{
Expand Down Expand Up @@ -152,9 +152,20 @@ snd_seq_port_info_t *new_port_info();

snd_seq_client_info_t *new_client_info();

snd_seq_event_t *event_input(snd_seq_t *handle);
PyObject *client_poll_descriptors(snd_seq_t *handle);

%exception event_input {
$action
if (result == (snd_seq_event_t*)Py_None) {
return Py_None;
}
if (!result) {
SWIG_fail;
}
}

snd_seq_event_t *event_input(snd_seq_t *handle);

%exception;

void free_queue_status(snd_seq_queue_status_t *qstatus);
Expand Down

0 comments on commit fec1e8f

Please sign in to comment.