fix a few pedantic GCC warnings due to superfluous semicolons

these warnings are only only produced by GCC in its pedantic mode (and
possibly with -O3 in addition, but I haven't checked this...)