aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-expr.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fortran/trans-expr.c')
-rw-r--r--gcc/fortran/trans-expr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/fortran/trans-expr.c b/gcc/fortran/trans-expr.c
index af7e8cf..f8e4df8 100644
--- a/gcc/fortran/trans-expr.c
+++ b/gcc/fortran/trans-expr.c
@@ -1111,11 +1111,10 @@ assign:
static void
realloc_lhs_warning (bt type, bool array, locus *where)
{
- if (array && type != BT_CLASS && type != BT_DERIVED
- && gfc_option.warn_realloc_lhs)
+ if (array && type != BT_CLASS && type != BT_DERIVED && warn_realloc_lhs)
gfc_warning ("Code for reallocating the allocatable array at %L will "
"be added", where);
- else if (gfc_option.warn_realloc_lhs_all)
+ else if (warn_realloc_lhs_all)
gfc_warning ("Code for reallocating the allocatable variable at %L "
"will be added", where);
}