diff options
author | Tobias Burnus <burnus@net-b.de> | 2014-12-06 17:33:11 +0100 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2014-12-06 17:33:11 +0100 |
commit | 0f447a6e33db466cb8b04fc3583ed76626ca8f3b (patch) | |
tree | 636127fb29b38398c755e5e967a9d89e19339271 /gcc/fortran/decl.c | |
parent | b8a82c9dc6a72e9a98f1df09f4cba9de379236ae (diff) | |
download | gcc-0f447a6e33db466cb8b04fc3583ed76626ca8f3b.zip gcc-0f447a6e33db466cb8b04fc3583ed76626ca8f3b.tar.gz gcc-0f447a6e33db466cb8b04fc3583ed76626ca8f3b.tar.bz2 |
error.c (gfc_buffer_error, [...]): Use bool not
2014-12-06 Tobias Burnus <burnus@net-b.de>
Manuel López-Ibáñez <manu@gcc.gnu.org>
* error.c (gfc_buffer_error, gfc_error_flag_test): Use bool not
* int.
(buffer_flag): Remove static variable.
(buffered_p): Add static variable.
(gfc_error_init_1): Call gfc_buffer_error.
(gfc_warning_1, gfc_warning, gfc_warning_now_1, gfc_error,
gfc_error_now_1): Update for static variable change.
* gfortran.h (gfc_buffer_error, gfc_error_flag_test): Update
prototype.
* parse.c (use_modules, decode_specification_statement,
next_fixed, next_statement, match_deferred_characteristics):
Update calls.
* decl.c (gfc_match_data_decl): Ditto.
* match.c (gfc_match_name): Ditto.
Co-Authored-By: Manuel López-Ibáñez <manu@gcc.gnu.org>
From-SVN: r218449
Diffstat (limited to 'gcc/fortran/decl.c')
-rw-r--r-- | gcc/fortran/decl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c index f374b9a..6e55bbf 100644 --- a/gcc/fortran/decl.c +++ b/gcc/fortran/decl.c @@ -4397,7 +4397,7 @@ ok: break; } - if (gfc_error_flag_test () == 0) + if (!gfc_error_flag_test ()) gfc_error ("Syntax error in data declaration at %C"); m = MATCH_ERROR; |