From ca45dd4353ce1bd471bf888e9c29c86c90ccbd5f Mon Sep 17 00:00:00 2001 From: Zachary Wasserman Date: Thu, 14 Apr 2016 12:02:40 -0700 Subject: [PATCH] Fix error when using -DNO_HTTP_CLIENT=1 --- aws-cpp-sdk-core/source/http/HttpClientFactory.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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