re PR fortran/40287 (Spurious warnings with -Wconversion and COUNT())

2009-12-10  Daniel Franke  <franke.daniel@gmail.com>

        PR fortran/40287
        * iresolve.c (resolve_mask_arg): Disabled warning on conversion
        to LOGICAL(1).

From-SVN: r155142
This commit is contained in:
Daniel Franke 2009-12-10 16:57:49 -05:00 committed by Daniel Franke
parent b94e5176d7
commit 63bcb71f99
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2009-12-10 Daniel Franke <franke.daniel@gmail.com>
PR fortran/40287
* iresolve.c (resolve_mask_arg): Disabled warning on conversion
to LOGICAL(1).
2009-12-10 Daniel Franke <franke.daniel@gmail.com>
PR fortran/41369

View File

@ -106,7 +106,7 @@ resolve_mask_arg (gfc_expr *mask)
{
ts.type = BT_LOGICAL;
ts.kind = 1;
gfc_convert_type (mask, &ts, 2);
gfc_convert_type_warn (mask, &ts, 2, 0);
}
}
}