diff --git a/aws-cpp-sdk-core/source/http/HttpClientFactory.cpp b/aws-cpp-sdk-core/source/http/HttpClientFactory.cpp index 374a46acd92..2a0ec18d2ea 100644 --- a/aws-cpp-sdk-core/source/http/HttpClientFactory.cpp +++ b/aws-cpp-sdk-core/source/http/HttpClientFactory.cpp @@ -50,6 +50,10 @@ std::shared_ptr HttpClientFactory::CreateHttpClient(const ClientConf #elif ENABLE_CURL_CLIENT return Aws::MakeShared(allocationTag, clientConfiguration); #else + // When neither of these clients is enabled, gcc gives a warning (converted + // to error by -Werror) about the unused clientConfiguration parameter. We + // prevent that warning with AWS_UNREFERENCED_PARAM. + AWS_UNREFERENCED_PARAM(clientConfiguration); return nullptr; #endif