Skip to content

Commit

Permalink
Fix unused private field warn as error in case of imds v1 disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyRyabinin committed Jul 12, 2024
1 parent 673614e commit a3e9cd1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,11 @@ namespace Aws
m_tokenRequired(true),
m_disableIMDSV1(clientConfiguration.disableImdsV1)
{

#if defined(DISABLE_IMDSV1)
AWS_UNREFERENCED_PARAM(m_disableIMDSV1);
m_disableIMDSV1 = true;
AWS_LOGSTREAM_TRACE(m_logtag.c_str(), "IMDSv1 had been disabled at the SDK build time");
#endif
}

EC2MetadataClient::~EC2MetadataClient()
Expand Down

0 comments on commit a3e9cd1

Please sign in to comment.