Skip to content

Commit c19410b

Browse files
authored
Merge pull request o3de#17598 from aws-lumberyard-dev/AWSInitPreventAwsEC2MetadataCalls_DefaultParam
AWSNativeSDKInit::PreventAwsEC2MetadataCalls Default Param Compiler Error Fix
2 parents 9b89179 + 7fe60a8 commit c19410b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Code/Tools/AWSNativeSDKInit/include/AWSNativeSDKInit/AWSNativeSDKInit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ namespace AWSNativeSDKInit
5454
//! Note: This is a helper function for managing the environment variable, AWS_EC2_METADATA_DISABLED, but impacts just the current application's environment.
5555
//! @param force If true, always set AWS_EC2_METADATA_DISABLED to true, otherwise only set if environment variable is not set.
5656
//! @returns True if env var was set or currently prevents calls, False otherwise
57-
static bool PreventAwsEC2MetadataCalls(bool force);
57+
static bool PreventAwsEC2MetadataCalls(bool force = false);
5858

5959
private:
6060
void InitializeAwsApiInternal();

Code/Tools/AWSNativeSDKInit/source/AWSNativeSDKInit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ namespace AWSNativeSDKInit
8585
#endif // #if defined(PLATFORM_SUPPORTS_AWS_NATIVE_SDK)
8686
}
8787

88-
bool InitializationManager::PreventAwsEC2MetadataCalls(bool force = false)
88+
bool InitializationManager::PreventAwsEC2MetadataCalls(bool force)
8989
{
9090
bool prevented = false;
9191
#if defined(PLATFORM_SUPPORTS_AWS_NATIVE_SDK)

0 commit comments

Comments
 (0)