From 1c144d75e0db1c977b8b6e419c5a967f1897c1dd 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 d424ea5..614d7c5 100644 --- a/lib/Geo/GDAL/FFI.pm +++ b/lib/Geo/GDAL/FFI.pm @@ -1820,6 +1820,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