Skip to content

Commit 4d571b1

Browse files
committedDec 6, 2012
GRASS compilation fix
1 parent 4dc8499 commit 4d571b1

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed
 

‎src/plugins/grass/qgsgrassmodule.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class QgsGrassModule: public QDialog, private Ui::QgsGrassModuleBase
141141
void readStderr();
142142

143143
//! Call on mapset change, i.e. also possible direct/indirect mode change
144-
void mapsetChanged();
144+
//void mapsetChanged();
145145

146146
private:
147147
//! Pointer to the QGIS interface object

‎src/providers/grass/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ SET ( FUNCTIONS
9393
"G_row_to_northing"
9494
"G_set_c_null_value"
9595
"G_set_d_null_value"
96+
"G_set_f_null_value"
9697
"G_set_d_raster_cat"
9798
"G_set_gisrc_mode"
9899
"G_set_null_value"

‎src/providers/grass/qgsgrassgislib.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,10 @@ QgsGrassGisLib::QgsGrassGisLib()
8585

8686
int GRASS_LIB_EXPORT QgsGrassGisLib::errorRoutine( const char *msg, int fatal )
8787
{
88+
Q_UNUSED( fatal );
8889
QgsDebugMsg( QString( "error_routine (fatal = %1): %2" ).arg( fatal ).arg( msg ) );
89-
// Crash to get backtrace
90-
//int *x = 0; *x = 1;
9190
// qFatal does core dump, useful for backtrace
92-
qFatal( QString( "Fatal error: %1" ).arg( msg ).toAscii().data() );
91+
qFatal( "Fatal error: %s", msg );
9392
return 1;
9493
}
9594

@@ -116,6 +115,7 @@ void * QgsGrassGisLib::resolve( const char * symbol )
116115

117116
int GRASS_LIB_EXPORT QgsGrassGisLib::G__gisinit( const char * version, const char * programName )
118117
{
118+
Q_UNUSED( version );
119119
// We use this function also to init our fake lib
120120
QgsDebugMsg( QString( "version = %1 programName = %2" ).arg( version ).arg( programName ) );
121121

@@ -281,7 +281,7 @@ int G_fatal_error( const char * msg, ... )
281281
va_end( ap );
282282

283283
// qFatal does core dump, useful for backtrace
284-
qFatal( QString( "Fatal error: %1" ).arg( buffer ).toAscii().data() );
284+
qFatal( "Fatal error: %s", buffer );
285285
exit( 1 ); // must exit to avoid compilation warning
286286
}
287287

@@ -456,7 +456,7 @@ int QgsGrassGisLib::G_open_raster_new( const char *name, RASTER_MAP_TYPE wr_type
456456
fatal( "Cannot create output data source: " + dataSource );
457457
}
458458
raster.band = 1;
459-
double noDataValue;
459+
double noDataValue = std::numeric_limits<double>::quiet_NaN();
460460
switch ( wr_type )
461461
{
462462
case CELL_TYPE:

0 commit comments

Comments
 (0)
Please sign in to comment.