Skip to content

Commit 93a948f

Browse files
committedMay 18, 2015
fix some warnings
1 parent 711ecf9 commit 93a948f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/providers/grass/qgis.r.in.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,14 @@ int main( int argc, char **argv )
114114
break;
115115
default:
116116
G_fatal_error( "QGIS data type %d not supported", qgis_type );
117+
return 1;
117118
}
118119

119120
cf = G_open_raster_new( name, grass_type );
120121
if ( cf < 0 )
121122
{
122123
G_fatal_error( "Unable to create raster map <%s>", name );
124+
return 1;
123125
}
124126

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

137140
qint32 *cell;

0 commit comments

Comments
 (0)
Please sign in to comment.