Skip to content

Commit

Permalink
Warn about truncated character expressions
Browse files Browse the repository at this point in the history
Fix by matching type from openspec.inc/FILESPEC.INC
  • Loading branch information
mwtoews committed Mar 7, 2019
1 parent 08479fe commit 75f78fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion autotest/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

fflags = None
if fc == 'gfortran':
fflags = 'Werror Wtabs Wline-truncation'
fflags = 'Werror Wtabs Wline-truncation Wcharacter-truncation'

# Development version information
testpaths = [os.path.join('..', 'test-cmp'), os.path.join('..', 'test-reg')]
Expand Down
2 changes: 1 addition & 1 deletion mt3dms/src/mt_utl5.for
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ C
IMPLICIT NONE
INTEGER IN,ISTAT,I,IDFL
LOGICAL LOP
CHARACTER FINDEX*30,FLNAME*50,FLFORM*15,FLSTAT*15,FILACT*20,
CHARACTER FINDEX*30,FLNAME*50,FLFORM*20,FLSTAT*15,FILACT*20,
& ACCARG*20
C
INCLUDE 'FILESPEC.INC'
Expand Down
2 changes: 1 addition & 1 deletion src/utl1.f
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ SUBROUTINE OPENFL(IN,ISTAT,FLNAME,IDFL,FINDEX)
IMPLICIT NONE
INTEGER IN,ISTAT,I,IDFL
LOGICAL LOP
CHARACTER FINDEX*30,FLNAME*50,FLFORM*15,FLSTAT*15,FILACT*20,
CHARACTER FINDEX*30,FLNAME*50,FLFORM*20,FLSTAT*15,FILACT*20,
& ACCARG*20
C
INCLUDE 'openspec.inc'
Expand Down

0 comments on commit 75f78fc

Please sign in to comment.