Skip to content

Commit

Permalink
Try only for gnuc
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Feb 12, 2024
1 parent e649f4e commit a05291a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/aws/common/math.inl
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ AWS_EXTERN_C_BEGIN
#endif /* _MSC_VER */

#ifdef __cplusplus
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wuseless-cast"
# if defined(__GNUC__)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wuseless-cast"
# endif
#endif

AWS_STATIC_IMPL uint64_t aws_sub_u64_saturating(uint64_t a, uint64_t b) {
Expand Down

0 comments on commit a05291a

Please sign in to comment.