Hello all, the below patch silences this warnings:
classpath/native/jni/qt-peer/eventmethods.h:111: warning: deprecated conversion from string constant to 'char*''
There are quite a lot of them. And they pop up in gcc-head. Ok to commit? Andreas 2006-05-26 Andreas Tobler <[EMAIL PROTECTED]> * native/jni/qt-peer/eventmethods.h (callVoidMethod): Silence warning. (callMouseMethod): Likewise.
Index: native/jni/qt-peer/eventmethods.h =================================================================== RCS file: /cvsroot/classpath/classpath/native/jni/qt-peer/eventmethods.h,v retrieving revision 1.3 diff -u -r1.3 eventmethods.h --- native/jni/qt-peer/eventmethods.h 23 Aug 2005 02:13:48 -0000 1.3 +++ native/jni/qt-peer/eventmethods.h 26 May 2006 19:10:00 -0000 @@ -1,5 +1,5 @@ /* eventmethods.cpp -- - Copyright (C) 2005 Free Software Foundation, Inc. + Copyright (C) 2005, 2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -62,7 +62,7 @@ env->DeleteGlobalRef(componentCls); } - void callVoidMethod(char *methodName) + void callVoidMethod(const char *methodName) { JNIEnv *env; vm->GetEnv((void **)&env, JNI_VERSION_1_1); @@ -72,7 +72,7 @@ env->CallVoidMethod( target, fireEventID ); } - void callMouseMethod(char *methodName, + void callMouseMethod(const char *methodName, int modifiers, int x, int y, int clickCount) { JNIEnv *env;