Skip to content

Commit

Permalink
Merge pull request #48 from mwtoews/warnings
Browse files Browse the repository at this point in the history
Use Travis CI to check for compilation warnings
  • Loading branch information
emorway-usgs committed Mar 8, 2019
2 parents 4a2d29a + 75f78fc commit a3fde30
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#################

*.pydevproject
*.o
.project
.metadata
bin/
Expand Down Expand Up @@ -51,7 +50,6 @@ local.properties
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
Expand Down Expand Up @@ -130,6 +128,13 @@ Thumbs.db
Desktop.ini


#############
## Fortran
#############
*.o
*.obj
*.mod

#############
## Python
#############
Expand Down
4 changes: 4 additions & 0 deletions autotest/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
if platform.system() in 'Windows':
target_extension = '.exe'

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

# Development version information
testpaths = [os.path.join('..', 'test-cmp'), os.path.join('..', 'test-reg')]
srcdir = os.path.join('..', 'src')
Expand Down
3 changes: 2 additions & 1 deletion autotest/t000_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ def test_compile_dev():
target = config.target
pymake.main(config.srcdir, target, config.fc, 'gcc', makeclean=True,
expedite=False, dryrun=False, double=False, debug=False,
include_subdirs=False, arch=config.target_arch)
include_subdirs=False, arch=config.target_arch,
fflags=config.fflags)

# Ensure target has been built
assert os.path.isfile(target) is True, 'Target {} does not exist.'.format(target)
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 a3fde30

Please sign in to comment.