Skip to content

Commit 0f744d3

Browse files
committed
Fixup conflicts after merge
1 parent 62d711a commit 0f744d3

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

src/aws-cpp-sdk-core/source/internal/AWSHttpResourceClient.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -477,14 +477,6 @@ namespace Aws
477477
return ec2MetadataServiceEndpoint;
478478
}
479479

480-
#ifdef _MSC_VER
481-
// VS2015 compiler's bug, warning s_ec2metadataClient: symbol will be dynamically initialized (implementation limitation)
482-
AWS_SUPPRESS_WARNING(4592,
483-
static std::shared_ptr<EC2MetadataClient> s_ec2metadataClient(nullptr);
484-
)
485-
#else
486-
static std::shared_ptr<EC2MetadataClient> s_ec2metadataClient(nullptr);
487-
#endif
488480

489481
void InitEC2MetadataClient(const Aws::Client::ClientConfiguration::CredentialProviderConfiguration& credentialConfig)
490482
{
@@ -509,6 +501,15 @@ namespace Aws
509501
#endif
510502
}
511503

504+
#ifdef _MSC_VER
505+
// VS2015 compiler's bug, warning s_ec2metadataClient: symbol will be dynamically initialized (implementation limitation)
506+
AWS_SUPPRESS_WARNING(4592,
507+
static std::shared_ptr<EC2MetadataClient> s_ec2metadataClient(nullptr);
508+
)
509+
#else
510+
static std::shared_ptr<EC2MetadataClient> s_ec2metadataClient(nullptr);
511+
#endif
512+
512513
void CleanupEC2MetadataClient()
513514
{
514515
if (!s_ec2metadataClient)

0 commit comments

Comments
 (0)