Skip to content

Commit

Permalink
fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed May 18, 2015
1 parent 711ecf9 commit 93a948f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/providers/grass/qgis.r.in.cpp
Expand Up @@ -114,12 +114,14 @@ int main( int argc, char **argv )
break;
default:
G_fatal_error( "QGIS data type %d not supported", qgis_type );
return 1;
}

cf = G_open_raster_new( name, grass_type );
if ( cf < 0 )
{
G_fatal_error( "Unable to create raster map <%s>", name );
return 1;
}

void *buf = G_allocate_raster_buf( grass_type );
Expand All @@ -132,6 +134,7 @@ int main( int argc, char **argv )
if ( byteArray.size() != expectedSize )
{
G_fatal_error( "Wrong byte array size, expected %d bytes, got %d", expectedSize, byteArray.size() );
return 1;
}

qint32 *cell;
Expand Down

0 comments on commit 93a948f

Please sign in to comment.