Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove global -Wno-return-type from CMakeLists.txt #9387

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,7 @@ if("${ENABLE_ALL_WARNINGS}")
-Wno-strict-aliasing \
-Wno-type-limits \
-Wno-stringop-overflow \
-Wno-stringop-overread \
-Wno-return-type")
-Wno-stringop-overread")
endif()

set(KNOWN_WARNINGS
Expand Down
1 change: 1 addition & 0 deletions velox/connectors/hive/HivePartitionFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ inline uint32_t hashOne(
VELOX_UNSUPPORTED(
"Hive partitioning function doesn't support {} type",
TypeTraits<kind>::name);
return 0; // Make compiler happy.
}

template <>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,10 @@ class AbfsWriteFile::Impl {
blobStorageFileClient_->getProperties();
return true;
} catch (Azure::Storage::StorageException& e) {
if (e.StatusCode == Azure::Core::Http::HttpStatusCode::NotFound) {
return false;
} else {
if (e.StatusCode != Azure::Core::Http::HttpStatusCode::NotFound) {
throwStorageExceptionWithOperationDetails("GetProperties", path_, e);
}
return false;
}
}

Expand Down
1 change: 1 addition & 0 deletions velox/exec/tests/TableWriteTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ std::string testModeString(TestMode mode) {
case TestMode::kBucketed:
return "BUCKETED";
}
VELOX_UNREACHABLE();
}

static std::shared_ptr<core::AggregationNode> generateAggregationNode(
Expand Down
1 change: 1 addition & 0 deletions velox/functions/prestosql/types/JsonType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,7 @@ struct CastFromJsonTypedImpl {
static simdjson::error_code apply(Input, exec::GenericWriter&) {
acvictor marked this conversation as resolved.
Show resolved Hide resolved
VELOX_NYI(
"Casting from JSON to {} is not supported.", TypeTraits<kind>::name);
return simdjson::error_code::UNEXPECTED_ERROR; // Make compiler happy.
}
};

Expand Down
2 changes: 1 addition & 1 deletion velox/functions/remote/if/GetSerde.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ std::unique_ptr<VectorSerde> getSerde(const remote::PageFormat& format) {
case remote::PageFormat::SPARK_UNSAFE_ROW:
return std::make_unique<serializer::spark::UnsafeRowVectorSerde>();
}
VELOX_UNREACHABLE();
}

} // namespace facebook::velox::functions
Loading