Duplicate definitions for AWS_CREDENTIAL_PROVIDER_EXPIRATION_GRACE_PERIOD #2906
Labels
bug
This issue is a bug.
p3
This is a minor priority issue
pending-release
This issue will be fixed by an approved PR that hasn't been released yet.
Describe the bug
The unqualified symbol
AWS_CREDENTIAL_PROVIDER_EXPIRATION_GRACE_PERIOD
is defined in two different namespaces (with the same type and value).https://github.com/search?q=repo%3Aaws%2Faws-sdk-cpp%20AWS_CREDENTIAL_PROVIDER_EXPIRATION_GRACE_PERIOD&type=code
While this isn't likely an issue now (due to them being identical and only one of them actually being used) it could become an issue.
Expected Behavior
Constant names always resolved to the same symbol.
Current Behavior
two different constants with the same name in different namespaces.
Reproduction Steps
Build under clang with
-Werror -Wunused-const-variable
.Possible Solution
Delete this line:
aws-sdk-cpp/src/aws-cpp-sdk-core/source/auth/GeneralHTTPCredentialsProvider.cpp
Line 17 in 832ce62
Additional Information/Context
No response
AWS CPP SDK version used
head
Compiler and Version used
clang version 10.0.0-4ubuntu1
Operating System and version
Linux
The text was updated successfully, but these errors were encountered: