Skip to content

Commit

Permalink
Fix build warnings in spatialite provider
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 11, 2017
1 parent 3da5ab6 commit 44574d2
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/providers/spatialite/qgsspatialiteprovider.cpp
Expand Up @@ -1200,6 +1200,10 @@ int QgsSpatiaLiteProvider::computeSizeFromGeosWKB2D( const unsigned char *blob,
p_in += points * ( 2 * sizeof( double ) );
}
break;

case QgsWkbTypes::UnknownGeometry:
case QgsWkbTypes::NullGeometry:
break;
}
}

Expand Down Expand Up @@ -1382,6 +1386,10 @@ int QgsSpatiaLiteProvider::computeSizeFromGeosWKB3D( const unsigned char *blob,
p_in += points * ( 3 * sizeof( double ) );
}
break;

case QgsWkbTypes::UnknownGeometry:
case QgsWkbTypes::NullGeometry:
break;
}
}

Expand Down Expand Up @@ -1479,6 +1487,10 @@ int QgsSpatiaLiteProvider::computeSizeFromMultiWKB3D( const unsigned char *p_in,
}
}
break;

case QgsWkbTypes::UnknownGeometry:
case QgsWkbTypes::NullGeometry:
break;
}
}

Expand Down Expand Up @@ -2452,6 +2464,10 @@ void QgsSpatiaLiteProvider::convertFromGeosWKB3D( const unsigned char *blob,
break;
}
break;

case QgsWkbTypes::UnknownGeometry:
case QgsWkbTypes::NullGeometry:
break;
}
p_out += 4;
switch ( QgsWkbTypes::geometryType( type2 ) )
Expand Down Expand Up @@ -2550,9 +2566,17 @@ void QgsSpatiaLiteProvider::convertFromGeosWKB3D( const unsigned char *blob,
}
}
break;

case QgsWkbTypes::UnknownGeometry:
case QgsWkbTypes::NullGeometry:
break;
}
}
break;

case QgsWkbTypes::UnknownGeometry:
case QgsWkbTypes::NullGeometry:
break;
}
}
else
Expand Down Expand Up @@ -2727,6 +2751,10 @@ void QgsSpatiaLiteProvider::convertFromGeosWKB3D( const unsigned char *blob,
}
}
break;

case QgsWkbTypes::UnknownGeometry:
case QgsWkbTypes::NullGeometry:
break;
}
}
}
Expand Down

0 comments on commit 44574d2

Please sign in to comment.