Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Silence the warning: `Non-conforming tab character` in gfortran

I usually run my code with ifort, but during implementation, I prefer compiling and testing with gfortran as I find it to be a lot stricter than its intel counterpart.

While turning on compiling options such as -Wall, I get the following warning:

Warning: Nonconforming tab character at (1)

Is there a way to silence this one particular warning while using the same compiling options? Note that I do NOT want to replace tabs with space characters. If there is no way to resolve this issue, then the answer "No it's not possible" would suffice.

like image 658
solalito Avatar asked Aug 13 '15 11:08

solalito


1 Answers

UPDATE: With GCC/gFortran 5xx (I noticed with 5.3.0), the -Wtabs usage has been "reversed", and as they say, "made more sensible".

See here (https://gcc.gnu.org/gcc-5/changes.html)

Now -Wtabs DOES give the nonconforming warning, whereas -Wno-tabs TURNS OFF the warning (i.e. the opposite of the previous usage).

like image 169
DrOli Avatar answered Sep 28 '22 23:09

DrOli