From 915acec49bf7ffb41ff2bec3e149809c552496c4 Mon Sep 17 00:00:00 2001
From: Tobias Burnus <burnus@gcc.gnu.org>
Date: Sat, 25 Sep 2010 09:06:36 +0200
Subject: [PATCH] interface.c (gfc_match_end_interface): Constify char pointer
 to fix warning.

2010-09-25  Tobias Burnus  <burnus@net-b.de>

        * interface.c (gfc_match_end_interface): Constify char pointer
        to fix warning.

From-SVN: r164617
---
 gcc/fortran/ChangeLog   | 7 ++++++-
 gcc/fortran/interface.c | 2 +-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 7b32c5dd038f..5df77bf70f94 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,6 +1,11 @@
+2010-09-25  Tobias Burnus  <burnus@net-b.de>
+
+	* interface.c (gfc_match_end_interface): Constify char pointer
+	to fix warning.
+
 2010-09-24  Steven G. Kargl  < kargl@gcc.gnu.org>
 
-	* fortran/interface.c (gfc_match_end_interface): Deal with user defined
+	* interface.c (gfc_match_end_interface): Deal with user defined
 	operators that overload rational operators and C1202.
 
 2010-09-24  Tobias Burnus  <burnus@net-b.de>
diff --git a/gcc/fortran/interface.c b/gcc/fortran/interface.c
index 896ad75565ea..cbe63cad01be 100644
--- a/gcc/fortran/interface.c
+++ b/gcc/fortran/interface.c
@@ -320,7 +320,7 @@ gfc_match_end_interface (void)
 	    }
 	  else
 	    {
-	      char *s1, *s2;
+	      const char *s1, *s2;
 	      s1 = gfc_op2string (current_interface.op);
 	      s2 = gfc_op2string (op);
 
-- 
GitLab