Add -pedantic flag and fix error it caught