Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suppress warning messages when using NAG Fortran compiler #117

Merged
merged 1 commit into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions benchmarks/FLASH-IO/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ AM_FCFLAGS += $(FC_DEFINE)N_DIM=3
AM_FCFLAGS += $(FC_DEFINE)MAXBLOCKS=100
AM_FCFLAGS += $(FC_DEFINE)IONMAX=13

# suppress warning messages when using NAG Fortran compiler
if NAGFORT
# suppresses warning messages about unused external procedures
AM_FCFLAGS += -w=uep

# suppresses warning messages about variables set but never referenced;
AM_FCFLAGS += -w=unreffed

# suppresses warning messages about unused PARAMETERs;
AM_FCFLAGS += -w=uparam
endif

check_PROGRAMS = flash_benchmark_io

noinst_PROGRAMS = $(check_PROGRAMS)
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,7 @@ if test "x${has_fortran}" = xyes && test "x${ax_cv_fc_compiler_vendor}" = xnag ;
ACX_F77_MISMATCH([AS_VAR_APPEND([FFLAGS], [" $acx_cv_f77_mismatch_flag"])])
ACX_FC_MISMATCH([AS_VAR_APPEND([FCFLAGS], [" $acx_cv_fc_mismatch_flag"])])
fi
AM_CONDITIONAL(NAGFORT, [test x$ax_cv_fc_compiler_vendor = xnag])

if test "x$enable_shared" = xyes ; then
dnl Call LT_OUTPUT to produce file ./libtool which is used later in
Expand Down
17 changes: 17 additions & 0 deletions examples/F77/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,23 @@ AM_FFLAGS = -I$(top_builddir)/src/binding/f77 $(FFIXEDFORMFLAG)
LDADD = ${top_builddir}/src/libs/libpnetcdf.la utils.o
LDADD += @NETCDF4_LDFLAGS@ @ADIOS_LDFLAGS@ @NETCDF4_LIBS@ @ADIOS_LIBS@

# suppress warning messages when using NAG Fortran compiler
if NAGFORT
# suppresses warning messages about unused external procedures
AM_FFLAGS += -w=uep

# suppresses extension warnings for obsolete but common extensions to Fortran
# 77 - these are TAB format, byte-length specifiers, Hollerith constants
# and D lines;
AM_FFLAGS += -w=x77

# suppresses warning messages about variables set but never referenced;
AM_FFLAGS += -w=unreffed

# suppresses warning messages about unused PARAMETERs;
AM_FFLAGS += -w=uparam
endif

if SIZEOF_MPI_AINT_IS_4
AM_FFLAGS += $(FC_DEFINE)SIZEOF_MPI_AINT_IS_4
endif
Expand Down
12 changes: 12 additions & 0 deletions examples/F90/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ AM_FCFLAGS = ${FC_MODINC}$(top_builddir)/src/binding/f90 $(FFREEFORMFLAG)
LDADD = ${top_builddir}/src/libs/libpnetcdf.la utils.o
LDADD += @NETCDF4_LDFLAGS@ @ADIOS_LDFLAGS@ @NETCDF4_LIBS@ @ADIOS_LIBS@

# suppress warning messages when using NAG Fortran compiler
if NAGFORT
# suppresses warning messages about unused external procedures
AM_FCFLAGS += -w=uep

# suppresses warning messages about variables set but never referenced;
AM_FCFLAGS += -w=unreffed

# suppresses warning messages about unused PARAMETERs;
AM_FCFLAGS += -w=uparam
endif

check_PROGRAMS = nonblocking_write \
column_wise \
block_cyclic \
Expand Down
16 changes: 16 additions & 0 deletions examples/tutorial/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@ AM_FCFLAGS = $(FC_MODINC)$(top_builddir)/src/binding/f90 $(FFREEFORMFLAG)
LDADD = ${top_builddir}/src/libs/libpnetcdf.la
LDADD += @NETCDF4_LDFLAGS@ @ADIOS_LDFLAGS@ @NETCDF4_LIBS@ @ADIOS_LIBS@

# suppress warning messages when using NAG Fortran compiler
if NAGFORT
# suppresses warning messages about unused external procedures
AM_FFLAGS += -w=uep
AM_FCFLAGS += -w=uep

# suppresses extension warnings for obsolete but common extensions to Fortran
# 77 - these are TAB format, byte-length specifiers, Hollerith constants
# and D lines;
AM_FFLAGS += -w=x77

# suppresses warning messages about variables set but never referenced;
AM_FFLAGS += -w=unreffed
AM_FCFLAGS += -w=unreffed
endif

check_PROGRAMS = pnetcdf-write-from-master \
pnetcdf-read-from-master \
pnetcdf-write-nfiles \
Expand Down
12 changes: 12 additions & 0 deletions test/F90/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ AM_FCFLAGS = $(FC_MODINC)$(top_builddir)/src/binding/f90 \
LDADD = $(top_builddir)/src/libs/libpnetcdf.la ../common/libtestutils.la
LDADD += @NETCDF4_LDFLAGS@ @ADIOS_LDFLAGS@ @NETCDF4_LIBS@ @ADIOS_LIBS@

# suppress warning messages when using NAG Fortran compiler
if NAGFORT
# suppresses warning messages about unused external procedures
AM_FCFLAGS += -w=uep

# suppresses warning messages about variables set but never referenced;
AM_FCFLAGS += -w=unreffed

# suppresses warning messages about unused PARAMETERs;
AM_FCFLAGS += -w=uparam
endif

TESTPROGRAMS = tst_f90 \
f90tst_vars \
tst_types2 \
Expand Down
20 changes: 20 additions & 0 deletions test/fandc/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,26 @@ AM_FCFLAGS = $(FC_MODINC)$(top_builddir)/src/binding/f90 \
LDADD = $(top_builddir)/src/libs/libpnetcdf.la ../common/libtestutils.la
LDADD += @NETCDF4_LDFLAGS@ @ADIOS_LDFLAGS@ @NETCDF4_LIBS@ @ADIOS_LIBS@ -lm

# suppress warning messages when using NAG Fortran compiler
if NAGFORT
# suppresses warning messages about unused external procedures
AM_FFLAGS += -w=uep
AM_FCFLAGS += -w=uep

# suppresses extension warnings for obsolete but common extensions to Fortran
# 77 - these are TAB format, byte-length specifiers, Hollerith constants
# and D lines;
AM_FFLAGS += -w=x77

# suppresses warning messages about variables set but never referenced;
AM_FFLAGS += -w=unreffed
AM_FCFLAGS += -w=unreffed

# suppresses warning messages about unused PARAMETERs;
AM_FFLAGS += -w=uparam
AM_FCFLAGS += -w=uparam
endif

if DECL_MPI_OFFSET
# Do not add to AM_CPPFLAGS, as it will also be used by Fortran programs
# AM_CPPFLAGS += -DHAVE_DECL_MPI_OFFSET
Expand Down
12 changes: 12 additions & 0 deletions test/nf90_test/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ AM_CFLAGS =
LDADD = $(top_builddir)/src/libs/libpnetcdf.la ../common/libtestutils.la
LDADD += @NETCDF4_LDFLAGS@ @ADIOS_LDFLAGS@ @NETCDF4_LIBS@ @ADIOS_LIBS@

# suppress warning messages when using NAG Fortran compiler
if NAGFORT
# suppresses warning messages about unused external procedures
AM_FCFLAGS += -w=uep

# suppresses warning messages about variables set but never referenced;
AM_FCFLAGS += -w=unreffed

# suppresses warning messages about unused PARAMETERs;
AM_FCFLAGS += -w=uparam
endif

if RELAX_COORD_BOUND
AM_CFLAGS += -DRELAX_COORD_BOUND
AM_FCFLAGS += $(FC_DEFINE)RELAX_COORD_BOUND
Expand Down
17 changes: 17 additions & 0 deletions test/nf_test/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,23 @@ AM_FFLAGS = $(FFIXEDFORMFLAG)
LDADD = $(top_builddir)/src/libs/libpnetcdf.la ../common/libtestutils.la
LDADD += @NETCDF4_LDFLAGS@ @ADIOS_LDFLAGS@ @NETCDF4_LIBS@ @ADIOS_LIBS@

# suppress warning messages when using NAG Fortran compiler
if NAGFORT
# suppresses warning messages about unused external procedures
AM_FFLAGS += -w=uep

# suppresses extension warnings for obsolete but common extensions to Fortran
# 77 - these are TAB format, byte-length specifiers, Hollerith constants
# and D lines;
AM_FFLAGS += -w=x77

# suppresses warning messages about variables set but never referenced;
AM_FFLAGS += -w=unreffed

# suppresses warning messages about unused PARAMETERs;
AM_FFLAGS += -w=uparam
endif

M4FLAGS += -I${top_srcdir}/m4

if HAVE_F77_GNU_INT
Expand Down
20 changes: 20 additions & 0 deletions test/nonblocking/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,26 @@ AM_FFLAGS = -I$(top_builddir)/src/binding/f77 $(FFIXEDFORMFLAG)
LDADD = ${top_builddir}/src/libs/libpnetcdf.la ../common/libtestutils.la
LDADD += @NETCDF4_LDFLAGS@ @ADIOS_LDFLAGS@ @NETCDF4_LIBS@ @ADIOS_LIBS@ -lm

# suppress warning messages when using NAG Fortran compiler
if NAGFORT
# suppresses warning messages about unused external procedures
AM_FFLAGS += -w=uep
AM_FCFLAGS += -w=uep

# suppresses extension warnings for obsolete but common extensions to Fortran
# 77 - these are TAB format, byte-length specifiers, Hollerith constants
# and D lines;
AM_FFLAGS += -w=x77

# suppresses warning messages about variables set but never referenced;
AM_FFLAGS += -w=unreffed
AM_FCFLAGS += -w=unreffed

# suppresses warning messages about unused PARAMETERs;
AM_FFLAGS += -w=uparam
AM_FCFLAGS += -w=uparam
endif

if DECL_MPI_OFFSET
# Do not add to AM_CPPFLAGS, as it will also be used by Fortran programs
# AM_CPPFLAGS += -DHAVE_DECL_MPI_OFFSET
Expand Down
20 changes: 20 additions & 0 deletions test/testcases/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,26 @@ if DECL_MPI_OFFSET
AM_FCFLAGS += $(FC_DEFINE)HAVE_DECL_MPI_OFFSET
endif

# suppress warning messages when using NAG Fortran compiler
if NAGFORT
# suppresses warning messages about unused external procedures
AM_FFLAGS += -w=uep
AM_FCFLAGS += -w=uep

# suppresses extension warnings for obsolete but common extensions to Fortran
# 77 - these are TAB format, byte-length specifiers, Hollerith constants
# and D lines;
AM_FFLAGS += -w=x77

# suppresses warning messages about variables set but never referenced;
AM_FFLAGS += -w=unreffed
AM_FCFLAGS += -w=unreffed

# suppresses warning messages about unused PARAMETERs;
AM_FFLAGS += -w=uparam
AM_FCFLAGS += -w=uparam
endif

TESTPROGRAMS = ncmpi_vars_null_stride \
vectors \
collective_error \
Expand Down
Loading