Skip to content

Support GNU gcc for Mac OS X #34

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

Merged
merged 3 commits into from
Dec 29, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions aws-cpp-sdk-core/include/aws/core/utils/base64/Base64.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@

#ifdef __APPLE__

#ifdef __clang__
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif // __clang__

#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif // __GNUC__

#endif // __APPLE__

Expand Down
6 changes: 6 additions & 0 deletions aws-cpp-sdk-core/include/aws/core/utils/crypto/MD5.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@

#ifdef __APPLE__

#ifdef __clang__
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif // __clang__

#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif // __GNUC__

#endif // __APPLE__

Expand Down
6 changes: 6 additions & 0 deletions aws-cpp-sdk-core/include/aws/core/utils/crypto/Sha256.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@

#ifdef __APPLE__

#ifdef __clang__
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif // __clang__

#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif // __GNUC__

#endif // __APPLE__

Expand Down
6 changes: 6 additions & 0 deletions aws-cpp-sdk-core/include/aws/core/utils/crypto/Sha256HMAC.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@

#ifdef __APPLE__

#ifdef __clang__
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif // __clang__

#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif // __GNUC__

#endif // __APPLE__

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,19 @@
//to be different than the posix defined function.
//turn it off because we need it for this test and this isn't production code
//anyways.
#ifdef __APPLE__

#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif
#endif // __clang__

#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif // __GNUC__

#endif // __APPLE__

#ifdef _MSC_VER
#pragma warning(disable: 4996) // _CRT_SECURE_NO_WARNINGS
Expand Down Expand Up @@ -176,7 +185,14 @@ TEST(PersistentCognitoIdentityProvider_JsonImpl_Test, TestPersistance)
ASSERT_EQ(loginAccessTokens.longTermTokenExpiry, ourIdentityPool.GetObject("Logins").GetAllObjects().begin()->second.GetInt64("Expiry"));
}

#ifdef __APPLE__

#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // __clang__

#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__

#endif // __APPLE__