Δημοσιεύτηκε: 02 Μαρ 2012, 01:43
Το gcc compiler έχει το -Wall - αρχίζοντας από αυτό θα έλεγα να δοκιμάσεις:
Υπάρχει και το -pedantic αν θες να θέσεις και το standard που θα έπρεπε να ακολουθήσει:
http://linux.die.net/man/1/gfortran
- Κώδικας: Επιλογή όλων
gfortran -Wall
Υπάρχει και το -pedantic αν θες να θέσεις και το standard που θα έπρεπε να ακολουθήσει:
έγραψε:Some users try to use -pedantic to check programs for conformance. They soon find that it does not do quite what they want---it finds some nonstandard practices, but not all. However, improvements to GNU Fortran in this area are welcome.
This should be used in conjunction with -std=f95, -std=f2003 or -std=f2008.
- Κώδικας: Επιλογή όλων
gfortran -Wall -pedantic -std=f95
http://linux.die.net/man/1/gfortran