Identity: disable GCC warning (#6414)

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
This commit is contained in:
Anton Kolesnyk 2025-02-13 16:19:46 -08:00 committed by GitHub
parent b40045e8e9
commit d96cd6b76a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View File

@ -10,6 +10,8 @@
### Bugs Fixed
- [[#5235]](https://github.com/Azure/azure-sdk-for-cpp/issues/5235) Warnings in `azure/identity.hpp` cause strict builds to fail.
### Other Changes
## 1.10.1 (2024-11-08)

View File

@ -21,6 +21,14 @@
#include <vector>
namespace Azure { namespace Identity {
#if defined(__GNUC__)
// 'Azure::Identity::ClientCertificateCredential' declared with greater visibility than the type of
// its field 'Azure::Identity::ClientCertificateCredential::m_pkey' [-Wattributes].
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wattributes"
#endif
namespace _detail {
class TokenCredentialImpl;
@ -175,4 +183,8 @@ namespace Azure { namespace Identity {
Core::Context const& context) const override;
};
#if defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
}} // namespace Azure::Identity