Fixed warnings

For people like me that compile with -pedantic -Wall -Werror If func_end is required to have a ; at the end then the macro must be adapted.