Quiet down warning about return in non-void

Signed-off-by: Anton Lundin <glance@acc.umu.se>