Warning fixes: function declaration isn’t a prototype