[pylucene-dev] lots of warnings in C++ wrapper

Helmut Jarausch jarausch at igpm.rwth-aachen.de
Fri Jan 18 02:38:15 PST 2008


I am using gcc-4.2.2 which emits warings like
build/_lucene/__wrap01__.cpp:42773: warning: 
  deprecated conversion from string constant to 'char*'

for code similar to

void  print( char* message ) { ... }

and calling this with

print "Hello world";

The solution is to declare
void  print( const char* message ) { ... }


Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany

More information about the pylucene-dev mailing list