1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-04-28 06:33:36 +00:00

trunc-tests: pacify -Wmissing-prototypes

* tests/test-trunc2.c (trunc_reference): Now static.
This commit is contained in:
Paul Eggert
2026-01-13 08:06:57 -08:00
parent 388a172b76
commit 7d4eeebc74
2 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
2026-01-13 Paul Eggert <eggert@cs.ucla.edu>
trunc-tests: pacify -Wmissing-prototypes
* tests/test-trunc2.c (trunc_reference): Now static.
stdcountof-h-tests: pacify -Wnested-externs
* tests/test-stdcountof-h.c (test_func): Use top-level non-constant.

View File

@@ -58,7 +58,7 @@ static const DOUBLE TWO_MANT_DIG =
* (DOUBLE) (1U << ((MANT_DIG - 1 + 3) / 5))
* (DOUBLE) (1U << ((MANT_DIG - 1 + 4) / 5));
DOUBLE
static DOUBLE
trunc_reference (DOUBLE x)
{
/* The use of 'volatile' guarantees that excess precision bits are dropped