From e5e1a16dd317f311cba9126dbdd96952c2d42246 Mon Sep 17 00:00:00 2001 From: shawnlaffan Date: Sun, 29 Oct 2023 20:10:12 +1100 Subject: [PATCH] Avoid some used-once warnings Fixes #52 --- lib/Geo/GDAL/FFI.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Geo/GDAL/FFI.pm b/lib/Geo/GDAL/FFI.pm index 1a6ea0f..edad588 100644 --- a/lib/Geo/GDAL/FFI.pm +++ b/lib/Geo/GDAL/FFI.pm @@ -1819,6 +1819,12 @@ BEGIN { $instance = Geo::GDAL::FFI->new($gdal); } +{ + # avoid some used only once warnings + local $FFI::Platypus::keep; + local $FFI::Platypus::TypeParser::ffi_type; +} + 1; =pod