use -pedantic instead of -Wpedantic as gcc only knows the former.