Skip to content

Commit 3d5dc07

Browse files
committed
Fix GCC warning
1 parent 6453e38 commit 3d5dc07

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

gdalio.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ namespace inf::gdal::io {
1111

1212
const std::type_info& get_raster_type(const fs::path& fileName)
1313
{
14-
auto& type = gdal::RasterDataSet::open(fileName).band_datatype(1);
14+
auto ds = gdal::RasterDataSet::open(fileName);
15+
auto& type = ds.band_datatype(1);
1516
if (type == typeid(void)) {
1617
throw RuntimeError("Unsupported raster data type");
1718
}

vcpkg_overlay/vcpkg.just

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,11 @@ VCPKG_DEFAULT_HOST_TRIPLET := VCPKG_DEFAULT_TRIPLET
2525
vcpkg_root := env('VCPKG_ROOT', join(justfile_directory(), "./deps/vcpkg"))
2626
in_git_repo := path_exists(join(justfile_directory(), ".git"))
2727

28-
[windows]
29-
download_vcpkg_bin:
30-
- rm -rf '{{join(justfile_directory(), "vcpkg")}}'
31-
mkdir '{{join(justfile_directory(), "vcpkg")}}'
32-
git clone --depth 1 https://github.com/microsoft/vcpkg.git '{{join(justfile_directory(), "deps", "vcpkg")}}'
33-
curl -L --fail --show-error '{{vcpkg_tool_url}}' -o '{{join(justfile_directory(), "deps", "vcpkg", "vcpkg.exe")}}'
34-
28+
clone_vcpkg:
29+
- rm -rf '{{join(justfile_directory(), "build", "vcpkg")}}'
30+
mkdir '{{join(justfile_directory(), "build")}}'
31+
git clone --depth 1 https://github.com/microsoft/vcpkg.git '{{join(justfile_directory(), "build", "vcpkg")}}'
3532

36-
[unix]
37-
download_vcpkg_bin:
38-
- rm -rf '{{join(justfile_directory(), "vcpkg")}}'
39-
git clone --depth 1 https://github.com/microsoft/vcpkg.git '{{join(justfile_directory(), "deps", "vcpkg")}}'
40-
curl -L --fail --show-error '{{vcpkg_tool_url}}' -o '{{join(justfile_directory(), "deps", "vcpkg", "vcpkg")}}'
41-
chmod +x '{{join(justfile_directory(), "deps", "vcpkg", "vcpkg")}}'
4233

4334
git_status_clean:
4435
if {{in_git_repo}}; then git diff --quiet --exit-code; fi

0 commit comments

Comments
 (0)