[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#716700: gfortran-4.7: gfortran -Wno-error=unused-parameter dosn't fully take effect



Package: gfortran-4.7
Version: 4.7.2-5
Severity: normal

Dear Maintainer,

Running gfortran 4.7 with the attached program gives an error exit of the
compiler for a -Wunused-parameter warning after -Werror even though turn-into-
error for the associated warning has been disabled by -Wno-error=unused-
parameter.

Removing -Werror or -Wextra is effective but undesirable: The error (and lots
of useful diagnostics) disappear.

-Wno-error should have made the compiler not fail on the unused parameter
warning.

Regards, Thomas Jahns




-- System Information:
Debian Release: 7.1
  APT prefers testing
  APT policy: (900, 'testing'), (900, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/16 CPU cores)
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gfortran-4.7 depends on:
ii  gcc-4.7       4.7.2-5
ii  gcc-4.7-base  4.7.2-5
ii  libc6         2.13-38
ii  libc6-dev     2.13-38
ii  libgfortran3  4.7.2-5
ii  libgmp10      2:5.0.5+dfsg-2
ii  libmpc2       0.9-4
ii  libmpfr4      3.1.0-5
ii  zlib1g        1:1.2.7.dfsg-13

gfortran-4.7 recommends no packages.

Versions of packages gfortran-4.7 suggests:
ii  gfortran-4.7-doc       4.7.2-2
ii  gfortran-4.7-multilib  4.7.2-5
ii  libgfortran3-dbg       4.7.2-5

-- no debconf information
PROGRAM mpi_hello
  INTEGER, PARAMETER :: a = 1, b = 2, c = 3, d = 4, e = 5, f = 6, &
       g = 7, h = 8, i = 9, j = 10, k = 11, l = 12, m = 13, n = 14, &
       o = 15, p = 16, q = 17, r = 18, s = 19, t = 20, u = 21, v = 22, &
       w = 23, x = 24, y = 25, z = 26
  PRINT *, 'hello'
END PROGRAM mpi_hello
FC=gfortran-4.7
FCFLAGS=-Wall -Wextra -Werror -Wno-error=unused-parameter

gfortran-unused-parm: gfortran-unused-parm.f90
	$(FC) $(FCFLAGS) -o $@ $^


Reply to: