1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

Be ANSI-C compliant when defining CX_LIMITED_RANGE #pragma

This mutes warnings with clang

Approved by: rpaulo (mentor)
Reviewed by: das, kargl (both as part of a larger patch)
Phabric: D742
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
Enji Cooper 2014-09-09 02:58:58 +00:00
parent 9d3ddf4384
commit 8a3fd30740
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=271296
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$");
#include "test-utils.h"
#pragma STDC CX_LIMITED_RANGE off
#pragma STDC CX_LIMITED_RANGE OFF
/* Make sure gcc doesn't use builtin versions of these or honor __pure2. */
static float complex (*libconjf)(float complex) = conjf;

View File

@ -62,7 +62,7 @@ _csqrt(long double complex d)
return (csqrt((double complex)d));
}
#pragma STDC CX_LIMITED_RANGE off
#pragma STDC CX_LIMITED_RANGE OFF
/*
* Compare d1 and d2 using special rules: NaN == NaN and +0 != -0.