-
Notifications
You must be signed in to change notification settings - Fork 160
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
Fix useless-cast warning #1090
Fix useless-cast warning #1090
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1090 +/- ##
=======================================
Coverage 83.82% 83.82%
=======================================
Files 57 57
Lines 5991 5991
=======================================
Hits 5022 5022
Misses 969 969 ☔ View full report in Codecov by Sentry. |
include/aws/common/math.inl
Outdated
@@ -53,6 +53,13 @@ AWS_EXTERN_C_BEGIN | |||
# pragma warning(disable : 4127) /*Disable "conditional expression is constant" */ | |||
#endif /* _MSC_VER */ | |||
|
|||
#ifdef __cplusplus | |||
# if defined(__GNUC__) | |||
# pragma GCC diagnostic push |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also need to pop
Otherwise, any code that includes the .h file that includes this .inl file will have these warnings disabled
Fixed it here: #1145 |
Issue #, if available:
#973
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.