Sorry to hijack this thread, but is `-pedantic` just useful if you're worried about porting? Are there any benefits if the code it staying put?
It's mainly for porting. It means "reject anything that isn't strictly ANSI-compliant". However in most beginners' exercises, you won't be doing anything that is platform-specific. So -pedantic can act as a warning that you are going wrong.
I'm the author of MiniBasic: How to write a script interpreter and Basic Algorithms
Visit my website for lots of associated C programming resources. https://github.com/MalcolmMcLean