User forums > Using Code::Blocks

gfortran - nonconforming tabs warning

(1/2) > >>

gib:
Since my Fortran code has a great number of tabs, the compiler warning is very annoying - the great number of tabs warning messages drowning out other warnings.  I've followed suggestions that either -Wtabs or -Wno-tabs has the effect of suppressing these warnings, but in CB neither has that effect.  Does somebody know the solution to this?

Thanks
Gib

oBFusCATed:
These instructions might help: http://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

gib:
No, that doesn't help.  I'm sure some other Fortran programmers using CB must have encountered this issue.
To check how gfortran behaves outside of CB, I compiled a trivial test program:

--- Code: ---program main
integer :: i, j, k
k = 0
do i = 1,10
do j = 1,3
k = k+10
enddo
enddo
write(*,*) 'k: ',k
end program
--- End code ---

where the indentation on lines 5,6,7 uses tabs.

Compiled with
>gfortran -c test.f90
there are no warnings.
With
>gfortran -c -Wtabs test.f90
there are 3 tabs warnings
With
>gfortran -c -Wno-tabs test.f90
there are no warnings.

Using -Wtabs, -Wno-tabs or no compiler option in CB gives tabs warnings.  I have not been able to find any combination of compiler switches that turns these warnings off.  It is frustrating.

oBFusCATed:
It says this:

--- Quote ---I would start by turning on full Compiler logging.

This is done by selecting the "Full command line" option Under menu "Settings" -> "Compiler" -> Global compiler settings -> [the compiler you use] -> "Other Setting" tab, "Compiler logging". In 12.11 and newer this is enabled by default.
...
* You should review all the commands and their options;
...

--- End quote ---

Have you done it? Are they the same as the ones for your command line invocation of the compiler?

BlueHazzard:
Also

--- Quote ---If you have no luck, you can try to ask in the forum, but read first "How do I report a compilation problem on the forums"
--- End quote ---
and there:

--- Quote ---Build log:

--- Code: ---Paste full build log here. (It is found in the 'Build log' tab). Please make always a 'rebuild' (Menu: Build->Rebuild) or a 'clean' and 'build' before you copy the full build log.

--- End code ---

--- End quote ---

Navigation

[0] Message Index

[#] Next page

Go to full version