add -Wpedantic
cleanup/improve integer constant expression handling