Skip to content

Commit

Permalink
fix gcc version check for deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
minad committed Jun 12, 2019
1 parent a7853c3 commit 2a9148e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bn_prime_tab.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const mp_digit ltm_prime_tab[] = {
#endif
};

#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 301)
#if defined(__GNUC__) && __GNUC__ >= 4
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
const mp_digit *s_mp_prime_tab = ltm_prime_tab;
Expand Down
2 changes: 1 addition & 1 deletion tommath.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ TOOM_SQR_CUTOFF;
# endif
#endif

#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 301)
#if defined(__GNUC__) && __GNUC__ >= 4
# define MP_DEPRECATED(x) __attribute__((deprecated("replaced by " #x)))
# define PRIVATE_MP_DEPRECATED_PRAGMA(s) _Pragma(#s)
# define MP_DEPRECATED_PRAGMA(s) PRIVATE_MP_DEPRECATED_PRAGMA(GCC warning s)
Expand Down

0 comments on commit 2a9148e

Please sign in to comment.