diff options
author | Ian Lance Taylor <iant@google.com> | 2009-03-04 15:46:11 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2009-03-04 15:46:11 +0000 |
commit | 67b94c9e3ebc2f0dec7f2bcb0d98b3757bb3459c (patch) | |
tree | 6473e9b72261e2f56993eb746286957214fbd81b | |
parent | e4559c3001739afe4fde5ca62fc28084b614b396 (diff) |
* java/jcf-io.c (find_class): Use CONST_CAST.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-in-cxx@144605 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog.cxx | 2 | ||||
-rw-r--r-- | gcc/java/jcf-io.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/gcc/ChangeLog.cxx b/gcc/ChangeLog.cxx index ecbda0dc794..e40804209e0 100644 --- a/gcc/ChangeLog.cxx +++ b/gcc/ChangeLog.cxx @@ -1,5 +1,7 @@ 2009-03-04 Ian Lance Taylor <iant@google.com> + * java/jcf-io.c (find_class): Use CONST_CAST. + * fortran/Make-lang.in (gfortranspec.o): Compile with $(CXX). (fortran/cpp.o): Likewise. (gfortran$(exeext)): Link with $(CXX). diff --git a/gcc/java/jcf-io.c b/gcc/java/jcf-io.c index b968214e509..e50b6a6f656 100644 --- a/gcc/java/jcf-io.c +++ b/gcc/java/jcf-io.c @@ -399,9 +399,8 @@ find_class (const char *classname, int classname_length, JCF *jcf) /* Remember that this class could not be found so that we do not have to look again. */ - *(const void **)htab_find_slot_with_hash (memoized_class_lookups, - classname, hash, INSERT) - = classname; + *htab_find_slot_with_hash (memoized_class_lookups, classname, hash, INSERT) + = CONST_CAST (char *, classname); return NULL; found: |