"ifort -warn all" turns on -gen-interfaces (https://software.intel.com/en-us/node/678278) which allows the compiler to see things like certain type mismatches. Is there an equivalent for gfortran?