gfortran -Wall 对对齐字符tab做出警告
在编写fortran文件时,为了整齐易读使用tab对齐,同时使用gfortran -Wall 命令进行编译,这时编译器给出使用tab不当的警告, 感觉这个不应该啊,有没有办法避免给出这种警告啊?使用-Wall选项主要是为了发现一些小问题,例如定义了一个变量但是没有使用。 -Wall
Enables commonly used warning options pertaining to usage that we recommend avoiding and that we believe are easy to avoid. This currently includes -Waliasing, -Wampersand, -Wconversion, -Wsurprising, -Wintrinsics-std, -Wno-tabs, -Wintrinsic-shadow, -Wline-truncation, and -Wunused.
不知道上面提到的这些选项,是否有一个可以解决这个问题。 回复 2# EricFisher
试了一下命令 gfortran -Wall -Wtabs, 没有问题了。看来还得仔细看manpage啊!!!
页:
[1]