diff --git a/velox/dwio/common/ReaderFactory.cpp b/velox/dwio/common/ReaderFactory.cpp index dcb120aab907..56599c620fd9 100644 --- a/velox/dwio/common/ReaderFactory.cpp +++ b/velox/dwio/common/ReaderFactory.cpp @@ -31,7 +31,8 @@ ReaderFactoriesMap& readerFactories() { } // namespace bool registerReaderFactory(std::shared_ptr factory) { - bool ok = readerFactories().insert({factory->fileFormat(), factory}).second; + [[maybe_unused]] const bool ok = + readerFactories().insert({factory->fileFormat(), factory}).second; // NOTE: re-enable this check after Prestissimo has updated dwrf registration. #if 0 VELOX_CHECK(