warning: function declaration isn't a prototype

Parameter `void` is missing