Package: cfortran Version: 4.4-14 Severity: minor Tags: patch Dear Maintainer,
when compiling sources which use PPSTRING arguments, one receives a warning about an unused argument. This is because Fortran passes CHARACTER arguments with a count, but because of the way PPSTRING works, this is discarded. The following patch solves this problem by replacing the plain passing of only the pointer by an expression that uses a well established idiom to suppress unused argument warning while having no other effect. Regards, Thomas --- a/cfortran.h 2015-09-10 11:19:38.628955692 +0200 +++ b/cfortran.h 2015-09-10 11:20:46.642443275 +0200 @@ -2218,7 +2218,7 @@ #define STRING_cfT(M,I,A,B,D) TTTTSTR( A,B,D) #define STRINGV_cfT(M,I,A,B,D) TTTTSTRV(A,B,D, num_elem(A,D,_3(M,_STRV_A,I))) #define PSTRING_cfT(M,I,A,B,D) TTSTR( A,B,D) -#define PPSTRING_cfT(M,I,A,B,D) A +#define PPSTRING_cfT(M,I,A,B,D) ((void)D, A) #endif #endif #define PNSTRING_cfT(M,I,A,B,D) STRING_cfT(M,I,A,B,D) -- System Information: Debian Release: 7.9 APT prefers oldstable APT policy: (900, 'oldstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16.0-0.bpo.4-amd64 (SMP w/16 CPU cores) Locale: LANG=C, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash cfortran depends on no packages. Versions of packages cfortran recommends: ii gcc [c-compiler] 4:4.7.2-1 ii gcc-3.4 [c-compiler] 3.4.6-5 ii gcc-4.4 [c-compiler] 4.4.7-2 ii gcc-4.6 [c-compiler] 4.6.3-14 ii gcc-4.7 [c-compiler] 4.7.2-5 ii gfortran [fortran-compiler] 4:4.7.2-1 cfortran suggests no packages. -- no debconf information