Fix warning/error with -pedantic

Remove unnecessary semicolons.