3 ms·
I find more useful to make the program also warning free in clang instead of adding such options.
by Shorel 9y ago
I find more useful to make the program also warning free in clang instead of adding such options.
- jhasse 9y agoclang just adds more stuff to -Wextra but you can get most of the warnings in GCC too.
- Shorel 9y agoIt's more than only warnings. If you code runs fine with two or three different compilers you can also be sure that you don't rely on undefined or compiler specific behaviour. It's the same reason some multiplatform libraries are extremely battle tested and comparatively bug free when compared to single platform code.