Skip to content

Commit 6329c51

Browse files
committed
Merge pull request #97 from zbeekman/small-config-fix
Small fixes
2 parents 5bd5153 + 2bca4a6 commit 6329c51

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ endif ()
8787
#---------------------------------------------
8888
# See if our compiler supports ISO 10646/UCS4
8989
#---------------------------------------------
90-
set ( ENABLE_UNICODE FLASE CACHE BOOL
90+
set ( ENABLE_UNICODE FALSE CACHE BOOL
9191
"Enable unicode/UCS4 support" )
9292
if ( ENABLE_UNICODE )
9393
try_run( UCS4_TEST_RUNS UCS4_TEST_COMPILES

SConstruct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ env = Environment()
1919
if env['FORTRAN'] == 'gfortran':
2020
env = Environment(F90FLAGS = '-O2 -fbacktrace -g -Wall -Wextra -Wno-maybe-uninitialized -Wno-unused-function -pedantic -std=f2008 -J',)
2121
elif env['FORTRAN'] == 'ifort':
22-
env = Environment(F90FLAGS = '-O2 -warn -stand f08 -diag-disable 7601 -traceback -module lib',)
22+
env = Environment(F90FLAGS = '-O2 -warn -stand f08 -diag-disable 7601 -diag-disable 5142 -traceback -module lib',)
2323

2424
src = join('src','json_module.F90')
2525
ar = join('lib','libjsonfortran'+env['LIBSUFFIX'])

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ LIBOUT='libjsonfortran.a' # name of json library
7979
# warning #7601: F2008 standard does not allow an internal procedure to be an actual argument procedure name. (R1214.4).
8080
# In the context of F2008 this is an erroneous warning.
8181
# See https://prd1idz.cps.intel.com/en-us/forums/topic/486629
82-
INTELCOMPILERFLAGS='-c -O2 -warn -stand f08 -diag-disable 7601 -diag-disable 4013 -traceback'
82+
INTELCOMPILERFLAGS='-c -O2 -warn -stand f08 -diag-disable 7601 -diag-disable 4013 -diag-disable 5142 -traceback'
8383
#INTELCOMPILERFLAGS='-c -O2 -warn -traceback -stand f08 -assume protect_parens -assume buffered_io -check all'
8484

8585
GNUCOMPILERFLAGS='-c -O2 -fbacktrace -Wall -Wextra -Wno-maybe-uninitialized -Wno-unused-function -pedantic -std=f2008'

cmake/pickFortranCompilerFlags.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if ( NOT Fortran_FLAGS_INIT )
1717
# warning #7601: F2008 standard does not allow an internal procedure to be an actual argument procedure
1818
# name. (R1214.4). In the context of F2008 this is an erroneous warning.
1919
# See https://prd1idz.cps.intel.com/en-us/forums/topic/486629
20-
set ( CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -warn -stand f08 -diag-disable 7601" )
20+
set ( CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -warn -stand f08 -diag-disable 7601 -diag-disable 5142" )
2121
endif ()
2222
if ( ENABLE_RUNTIME_CHECKS )
2323
set ( CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -check all" )

0 commit comments

Comments
 (0)