Fix pedantic warnings about misplaced semicolons

-Wpedantic issues warnings about redundant semicolons outside of functions.