Identity: disable GCC warning (#6414)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
This commit is contained in:
parent
b40045e8e9
commit
d96cd6b76a
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user