@@ -85,11 +85,10 @@ QgsGrassGisLib::QgsGrassGisLib()
85
85
86
86
int GRASS_LIB_EXPORT QgsGrassGisLib::errorRoutine ( const char *msg, int fatal )
87
87
{
88
+ Q_UNUSED ( fatal );
88
89
QgsDebugMsg ( QString ( " error_routine (fatal = %1): %2" ).arg ( fatal ).arg ( msg ) );
89
- // Crash to get backtrace
90
- // int *x = 0; *x = 1;
91
90
// qFatal does core dump, useful for backtrace
92
- qFatal ( QString ( " Fatal error: %1 " ). arg ( msg ). toAscii (). data () );
91
+ qFatal ( " Fatal error: %s " , msg );
93
92
return 1 ;
94
93
}
95
94
@@ -116,6 +115,7 @@ void * QgsGrassGisLib::resolve( const char * symbol )
116
115
117
116
int GRASS_LIB_EXPORT QgsGrassGisLib::G__gisinit ( const char * version, const char * programName )
118
117
{
118
+ Q_UNUSED ( version );
119
119
// We use this function also to init our fake lib
120
120
QgsDebugMsg ( QString ( " version = %1 programName = %2" ).arg ( version ).arg ( programName ) );
121
121
@@ -281,7 +281,7 @@ int G_fatal_error( const char * msg, ... )
281
281
va_end ( ap );
282
282
283
283
// qFatal does core dump, useful for backtrace
284
- qFatal ( QString ( " Fatal error: %1 " ). arg ( buffer ). toAscii (). data () );
284
+ qFatal ( " Fatal error: %s " , buffer );
285
285
exit ( 1 ); // must exit to avoid compilation warning
286
286
}
287
287
@@ -456,7 +456,7 @@ int QgsGrassGisLib::G_open_raster_new( const char *name, RASTER_MAP_TYPE wr_type
456
456
fatal ( " Cannot create output data source: " + dataSource );
457
457
}
458
458
raster.band = 1 ;
459
- double noDataValue;
459
+ double noDataValue = std::numeric_limits< double >:: quiet_NaN () ;
460
460
switch ( wr_type )
461
461
{
462
462
case CELL_TYPE:
0 commit comments