Opened 15 years ago

Closed 15 years ago

#2030 closed patch (wontfix)

types conversion's errors when build

Reported by: brushtyler Owned by: nobody
Priority: minor: annoyance Milestone:
Component: Build/Install Version: Trunk
Keywords: grass, build Cc:
Must Fix for Release: No Platform: Debian
Platform Version: Awaiting user input: no

Description

Sorry, but I don't know how fill the 'Milestone', 'Version' and 'Platform Version' fields. I'm on Ubuntu 8.10 and I'm using the code in the trunk. The patch file is attached.


/trunk/qgis/src/providers/grass/qgsgrass.cpp:338 Gsetenv(( char * ) "GISDBASE", gisdbase.toAscii().constData() );

cannot convert argument 2 from 'const char *' to 'char *'

fix it by: Gsetenv(( char * ) "GISDBASE", gisdbase.toAscii().data() );


/trunk/qgis/src/providers/grass/qgsgrass.cpp:340 Gsetenv(( char * ) "LOCATION_NAME", location.toAscii().constData() );

cannot convert argumnet 2 from 'const char *' to 'char *'

fix if by: Gsetenv(( char * ) "LOCATION_NAME", location.toAscii().data() );

Attachments (1)

qgsgrass.cpp.diff (720 bytes ) - added by brushtyler 15 years ago.
patch file

Download all attachments as: .zip

Change History (2)

by brushtyler, 15 years ago

Attachment: qgsgrass.cpp.diff added

patch file

comment:1 by jef, 15 years ago

Priority: critical: causes crash or data corruptionminor: annoyance
Resolution: wontfix
Status: newclosed

intrepid still has GRASS 6.2. GRASS 6.4 (and IIRC GRASS 6.3) the argument is const.

Our ubuntu ppa already has packages for intrepid (including a patch)

Note: See TracTickets for help on using tickets.