aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Burnus <burnus@net-b.de>2014-11-29 11:56:04 +0100
committerTobias Burnus <burnus@gcc.gnu.org>2014-11-29 11:56:04 +0100
commitd0e168a01625742725503a68c1ebf8b64d5f8f11 (patch)
tree521c55927424a25105cd398dfc99a3828d4417d7
parent81fee4a708e49a075602b0b4f89793ad9ed22f01 (diff)
downloadgcc-d0e168a01625742725503a68c1ebf8b64d5f8f11.zip
gcc-d0e168a01625742725503a68c1ebf8b64d5f8f11.tar.gz
gcc-d0e168a01625742725503a68c1ebf8b64d5f8f11.tar.bz2
scanner.c (skip_free_comments, [...]): Use gfc_warning_now instead of ..._now_1.
2014-11-29 Tobias Burnus <burnus@net-b.de> * scanner.c (skip_free_comments, gfc_gobble_whitespace): Use gfc_warning_now instead of ..._now_1. From-SVN: r218180
-rw-r--r--gcc/fortran/ChangeLog5
-rw-r--r--gcc/fortran/scanner.c10
2 files changed, 10 insertions, 5 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index a6e9035..5f8e592 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,4 +1,9 @@
2014-11-29 Tobias Burnus <burnus@net-b.de>
+
+ * scanner.c (skip_free_comments, gfc_gobble_whitespace): Use
+ gfc_warning_now instead of ..._now_1.
+
+2014-11-29 Tobias Burnus <burnus@net-b.de>
Manuel López-Ibáñez <manu@gcc.gnu.org>
* lang.opt (Wtabs): Combine duplicated item into a single
diff --git a/gcc/fortran/scanner.c b/gcc/fortran/scanner.c
index 884fe70..ec7e8ae 100644
--- a/gcc/fortran/scanner.c
+++ b/gcc/fortran/scanner.c
@@ -775,10 +775,10 @@ skip_free_comments (void)
}
}
else
- gfc_warning_now_1 ("!$OMP at %C starts a commented "
- "line as it neither is followed "
- "by a space nor is a "
- "continuation line");
+ gfc_warning_now ("!$OMP at %C starts a commented "
+ "line as it neither is followed "
+ "by a space nor is a "
+ "continuation line");
}
gfc_current_locus = old_loc;
next_char ();
@@ -1388,7 +1388,7 @@ gfc_gobble_whitespace (void)
if (cur_linenum != linenum)
{
linenum = cur_linenum;
- gfc_warning_now_1 ("Nonconforming tab character at %C");
+ gfc_warning_now (OPT_Wtabs, "Nonconforming tab character at %C");
}
}
}