ANSI/ISO code and gcc options

Dear all,

Suppose i have code, and i want to compile just ansi/iso, -ansi -pedantic is enough for understanding it?
--pedantic or possibly --pedantic-errors. Two dashes, not one.
The man page says that --pedantic doesn't report all non-ISO practices, so you should be careful about that.
Topic archived. No new replies allowed.