Skip to content
Permalink
Browse files

Fix build warnings in spatialite provider

  • Loading branch information
nyalldawson committed Dec 11, 2017
1 parent 3da5ab6 commit 44574d2cc9bc9280f06f6ce5df06058e3c380f05
Showing with 28 additions and 0 deletions.
  1. +28 −0 src/providers/spatialite/qgsspatialiteprovider.cpp
@@ -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;
}
}

@@ -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;
}
}

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

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

@@ -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 ) )
@@ -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
@@ -2727,6 +2751,10 @@ void QgsSpatiaLiteProvider::convertFromGeosWKB3D( const unsigned char *blob,
}
}
break;

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

0 comments on commit 44574d2

Please sign in to comment.
You can’t perform that action at this time.