return-statement with a value, in function returning 'void' [-fpermissive] code example Example: error: return-statement with a value, in function returning 'void' [-fpermissive] return 0; ^ void* foo(...);