Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate definitions for AWS_CREDENTIAL_PROVIDER_EXPIRATION_GRACE_PERIOD #2906

Closed
bcsgh opened this issue Mar 26, 2024 · 2 comments · Fixed by #2907
Closed

Duplicate definitions for AWS_CREDENTIAL_PROVIDER_EXPIRATION_GRACE_PERIOD #2906

bcsgh opened this issue Mar 26, 2024 · 2 comments · Fixed by #2907
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.

Comments

@bcsgh
Copy link
Contributor

bcsgh commented Mar 26, 2024

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:

static const int AWS_CREDENTIAL_PROVIDER_EXPIRATION_GRACE_PERIOD = 5 * 1000;

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

@bcsgh bcsgh added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Mar 26, 2024
bcsgh added a commit to bcsgh/aws-sdk-cpp that referenced this issue Mar 26, 2024
@bcsgh bcsgh mentioned this issue Mar 26, 2024
11 tasks
@jmklix
Copy link
Member

jmklix commented Mar 26, 2024

Thanks for pointing this out. Testing the change to make sure it doesn't break anything

@jmklix jmklix added pending-release This issue will be fixed by an approved PR that hasn't been released yet. p3 This is a minor priority issue and removed needs-triage This issue or PR still needs to be triaged. labels Mar 26, 2024
@jmklix jmklix linked a pull request Mar 26, 2024 that will close this issue
11 tasks
jmklix pushed a commit that referenced this issue Mar 27, 2024
Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants