Skip to content

Commit

Permalink
clang warning ignore
Browse files Browse the repository at this point in the history
JerryScript-DCO-1.0-Signed-off-by: Máté Tokodi [email protected]
  • Loading branch information
matetokodi committed May 17, 2024
1 parent 0fcc0cb commit e234620
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jerry-math/include/math.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ extern "C" {
#endif /* _MSC_VER */
#define HUGE_VAL ((double) INFINITY)

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wliteral-range"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wliteral-range"
#define isnan(x) ((x) != (x))
#define isinf(x) ((x) == INFINITY ? 1 : (x) == -INFINITY ? -1 : 0)
#define isfinite(x) (!isinf (x) && !isnan (x))
#pragma GCC diagnostic pop
#pragma clang diagnostic pop

/* Exponential and Logarithmic constants. */
#define M_E 2.7182818284590452353602874713526625
Expand Down

0 comments on commit e234620

Please sign in to comment.