aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-decl.c
diff options
context:
space:
mode:
authorTobias Schlüter <tobi@gcc.gnu.org>2004-06-12 16:06:19 +0200
committerTobias Schlüter <tobi@gcc.gnu.org>2004-06-12 16:06:19 +0200
commit662ef0f5c62f781c4d20406ee11333c63bac8eef (patch)
tree3f6f1f97c22b8ddc8b4db0231e42b95da118a586 /gcc/fortran/trans-decl.c
parent4aef80f8e0b9f3a18e2afb6d10dcdcc26683d34d (diff)
downloadgcc-662ef0f5c62f781c4d20406ee11333c63bac8eef.zip
gcc-662ef0f5c62f781c4d20406ee11333c63bac8eef.tar.gz
gcc-662ef0f5c62f781c4d20406ee11333c63bac8eef.tar.bz2
re PR fortran/12841 (passing null to a subroutine)
fortran/ PR fortran/12841 * interface.c (compare_parameter, compare_actual_formal): Don't check types and array shapes for NULL() * trans-expr.c (conv_function_call): No double indirection for NULL() ( I had accidentally committed the interface.c part before) testuite/ PR fortran/12841 * gfortran.fortran-torture/execute/null_arg.f90: New test. From-SVN: r83028
Diffstat (limited to 'gcc/fortran/trans-decl.c')
-rw-r--r--gcc/fortran/trans-decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c
index 1420737..9b11dd8 100644
--- a/gcc/fortran/trans-decl.c
+++ b/gcc/fortran/trans-decl.c
@@ -1923,7 +1923,7 @@ generate_local_decl (gfc_symbol * sym)
/* warn for unused variables, but not if they're inside a common
block. */
else if (warn_unused_variable && !sym->attr.in_common)
- warning ("unused variable `%s'", sym->name);
+ warning ("unused variable `%s'", sym->name);
}
}