aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/resolve.c
diff options
context:
space:
mode:
authorTobias Burnus <burnus@net-b.de>2014-12-03 00:39:49 +0100
committerTobias Burnus <burnus@gcc.gnu.org>2014-12-03 00:39:49 +0100
commitf40315996b548f863f304b408e5e3680c380f5b6 (patch)
tree0d2d9e85f904df0453d83c5f4d238d739d7db369 /gcc/fortran/resolve.c
parent7f9283bf66259579b2da5fd407b078147e9ed798 (diff)
downloadgcc-f40315996b548f863f304b408e5e3680c380f5b6.zip
gcc-f40315996b548f863f304b408e5e3680c380f5b6.tar.gz
gcc-f40315996b548f863f304b408e5e3680c380f5b6.tar.bz2
error.c (warnings_not_errors): Use bool.
2014-12-02 Tobias Burnus <burnus@net-b.de> Manuel López-Ibáñez <manu@gcc.gnu.org> * error.c (warnings_not_errors): Use bool. (gfc_clear_error): Update. (gfc_get_errors): Ditto. Use bool argument. * gfortran.h (gfc_get_errors): Update prototype. * resolve.c (resolve_global_procedure): Update call. Co-Authored-By: Manuel López-Ibáñez <manu@gcc.gnu.org> From-SVN: r218296
Diffstat (limited to 'gcc/fortran/resolve.c')
-rw-r--r--gcc/fortran/resolve.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c
index 9d7d3c2..dfc2eb6 100644
--- a/gcc/fortran/resolve.c
+++ b/gcc/fortran/resolve.c
@@ -2431,7 +2431,7 @@ resolve_global_procedure (gfc_symbol *sym, locus *where,
if (!pedantic && (gfc_option.allow_std & GFC_STD_GNU))
/* Turn erros into warnings with -std=gnu and -std=legacy. */
- gfc_errors_to_warnings (1);
+ gfc_errors_to_warnings (true);
if (!gfc_compare_interfaces (sym, def_sym, sym->name, 0, 1,
reason, sizeof(reason), NULL, NULL))
@@ -2444,14 +2444,14 @@ resolve_global_procedure (gfc_symbol *sym, locus *where,
if (!pedantic
|| ((gfc_option.warn_std & GFC_STD_LEGACY)
&& !(gfc_option.warn_std & GFC_STD_GNU)))
- gfc_errors_to_warnings (1);
+ gfc_errors_to_warnings (true);
if (sym->attr.if_source != IFSRC_IFBODY)
gfc_procedure_use (def_sym, actual, where);
}
done:
- gfc_errors_to_warnings (0);
+ gfc_errors_to_warnings (false);
if (gsym->type == GSYM_UNKNOWN)
{