]> granicus.if.org Git - postgis/commitdiff
hide variable declaration
authorBborie Park <dustymugs at gmail.com>
Fri, 29 Dec 2017 17:20:23 +0000 (17:20 +0000)
committerBborie Park <dustymugs at gmail.com>
Fri, 29 Dec 2017 17:20:23 +0000 (17:20 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@16199 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_core/rt_raster.c

index 3ce6821d523cf61f339385faf0d7d96a4a559bab..eeae81aae001d66023b7b3d8a453cbf2d18877f8 100644 (file)
@@ -1718,7 +1718,6 @@ rt_raster_to_gdal(
  */
 rt_gdaldriver
 rt_raster_gdal_drivers(uint32_t *drv_count, uint8_t can_write) {
-       const char *is_raster;
        const char *cc;
        const char *vio;
        const char *txt;
@@ -1747,6 +1746,7 @@ rt_raster_gdal_drivers(uint32_t *drv_count, uint8_t can_write) {
 #ifdef GDAL_DCAP_RASTER
                /* Starting with GDAL 2.0, vector drivers can also be returned */
                /* Only keep raster drivers */
+               const char *is_raster;
                is_raster = GDALGetMetadataItem(drv, GDAL_DCAP_RASTER, NULL);
                if (is_raster == NULL || !EQUAL(is_raster, "YES"))
                        continue;