Skip to content
Permalink
Browse files

Avoid Coverity unchecked return value warnings

  • Loading branch information
nyalldawson committed Aug 31, 2017
1 parent e68835f commit 0be4c673465a070a6a3709800daa7c83522680b0
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/providers/ogr/qgsgeopackagedataitems.cpp
@@ -541,7 +541,7 @@ bool QgsGeoPackageConnectionItem::deleteGeoPackageRasterLayer( const QString uri
char *sql = sqlite3_mprintf( "DELETE FROM %w WHERE table_name = '%q'",
tableName.toUtf8().constData(),
layerName.toUtf8().constData() );
sqlite3_exec(
( void )sqlite3_exec(
handle, /* An open database */
sql, /* SQL to be evaluated */
NULL, /* Callback function */
@@ -554,7 +554,7 @@ bool QgsGeoPackageConnectionItem::deleteGeoPackageRasterLayer( const QString uri
{
char *sql = sqlite3_mprintf( "DELETE FROM gpkg_2d_gridded_coverage_ancillary WHERE tile_matrix_set_name = '%q'",
layerName.toUtf8().constData() );
sqlite3_exec(
( void )sqlite3_exec(
handle, /* An open database */
sql, /* SQL to be evaluated */
NULL, /* Callback function */
@@ -566,7 +566,7 @@ bool QgsGeoPackageConnectionItem::deleteGeoPackageRasterLayer( const QString uri
{
char *sql = sqlite3_mprintf( "DELETE FROM gpkg_2d_gridded_tile_ancillary WHERE tpudt_name = '%q'",
layerName.toUtf8().constData() );
sqlite3_exec(
( void )sqlite3_exec(
handle, /* An open database */
sql, /* SQL to be evaluated */
NULL, /* Callback function */
@@ -577,7 +577,7 @@ bool QgsGeoPackageConnectionItem::deleteGeoPackageRasterLayer( const QString uri
}
// Vacuum
{
sqlite3_exec(
( void )sqlite3_exec(
handle, /* An open database */
"VACUUM", /* SQL to be evaluated */
NULL, /* Callback function */

0 comments on commit 0be4c67

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