Browse Source

Merge pull request #17598 from aws-lumberyard-dev/AWSInitPreventAwsEC2MetadataCalls_DefaultParam

AWSNativeSDKInit::PreventAwsEC2MetadataCalls Default Param Compiler Error Fix
Gene Walters 1 năm trước cách đây
mục cha
commit
c19410bd27

+ 1 - 1
Code/Tools/AWSNativeSDKInit/include/AWSNativeSDKInit/AWSNativeSDKInit.h

@@ -54,7 +54,7 @@ namespace AWSNativeSDKInit
         //! Note: This is a helper function for managing the environment variable, AWS_EC2_METADATA_DISABLED, but impacts just the current application's environment.
         //! Note: This is a helper function for managing the environment variable, AWS_EC2_METADATA_DISABLED, but impacts just the current application's environment.
         //! @param force If true, always set AWS_EC2_METADATA_DISABLED to true, otherwise only set if environment variable is not set.
         //! @param force If true, always set AWS_EC2_METADATA_DISABLED to true, otherwise only set if environment variable is not set.
         //! @returns True if env var was set or currently prevents calls, False otherwise 
         //! @returns True if env var was set or currently prevents calls, False otherwise 
-        static bool PreventAwsEC2MetadataCalls(bool force);
+        static bool PreventAwsEC2MetadataCalls(bool force = false);
 
 
     private:    
     private:    
         void InitializeAwsApiInternal();
         void InitializeAwsApiInternal();

+ 1 - 1
Code/Tools/AWSNativeSDKInit/source/AWSNativeSDKInit.cpp

@@ -85,7 +85,7 @@ namespace AWSNativeSDKInit
 #endif // #if defined(PLATFORM_SUPPORTS_AWS_NATIVE_SDK)
 #endif // #if defined(PLATFORM_SUPPORTS_AWS_NATIVE_SDK)
     }
     }
 
 
-    bool InitializationManager::PreventAwsEC2MetadataCalls(bool force = false)
+    bool InitializationManager::PreventAwsEC2MetadataCalls(bool force)
     {
     {
         bool prevented = false;
         bool prevented = false;
 #if defined(PLATFORM_SUPPORTS_AWS_NATIVE_SDK)
 #if defined(PLATFORM_SUPPORTS_AWS_NATIVE_SDK)