Skip to content

Commit

Permalink
atlas_io: add [[maybe_unused]] attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
wdeconinck committed Oct 27, 2023
1 parent 1307dfc commit 5ce3000
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions atlas_io/src/atlas_io/detail/Defaults.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string>("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<bool>("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<bool>("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<std::string>("atlas.io.compression;$ATLAS_IO_COMPRESSION", "none");
return compression;
}
Expand Down

0 comments on commit 5ce3000

Please sign in to comment.