From 5ce300019389eebefb9bddb836bea87040a94034 Mon Sep 17 00:00:00 2001 From: Willem Deconinck Date: Fri, 27 Oct 2023 12:07:52 +0200 Subject: [PATCH] atlas_io: add [[maybe_unused]] attribute --- atlas_io/src/atlas_io/detail/Defaults.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/atlas_io/src/atlas_io/detail/Defaults.h b/atlas_io/src/atlas_io/detail/Defaults.h index c3691cf36..63a314d91 100644 --- a/atlas_io/src/atlas_io/detail/Defaults.h +++ b/atlas_io/src/atlas_io/detail/Defaults.h @@ -18,23 +18,23 @@ namespace atlas { namespace io { namespace defaults { -static std::string checksum_algorithm() { +[[maybe_unused]] static std::string checksum_algorithm() { static std::string checksum = eckit::Resource("atlas.io.checksum.algorithm;$ATLAS_IO_CHECKSUM", "xxh64"); return checksum; } -static bool checksum_read() { +[[maybe_unused]] static bool checksum_read() { static bool checksum = eckit::Resource("atlas.io.checksum.read;$ATLAS_IO_CHECKSUM_READ", true); return checksum; } -static bool checksum_write() { +[[maybe_unused]] static bool checksum_write() { static bool checksum = eckit::Resource("atlas.io.checksum.write;$ATLAS_IO_CHECKSUM_WRITE", true); return checksum; } -static const std::string& compression_algorithm() { +[[maybe_unused]] static const std::string& compression_algorithm() { static std::string compression = eckit::Resource("atlas.io.compression;$ATLAS_IO_COMPRESSION", "none"); return compression; }