Which gfortran compiler flag is associated with the warning “Illegal preprocessor directive”?
问题 When using pFUnit (3.2.9) to test my Fortran code, I get many "Illegal preprocessor directive" warnings, e.g. Warning: Illegal preprocessor directive /path/to/my/file/test.f90:37:2: #line 26 "/path/to/my/file/test.f90" 1 The code compiles and runs fine, so I would like to turn off these warnings, while still seeing other compiler warnings. Which gfortran compiler flag turns this specific warning off? I am working with gfortran 7.3.1. 回答1: This is not the kind of warning that one should turn