always declare a value you are using

This commit is contained in:
Sébastien Loriot 2025-06-03 18:44:59 +02:00
parent 4cfd48ba76
commit ad20fa497a
1 changed files with 2 additions and 1 deletions

View File

@ -486,7 +486,8 @@ FPU_CW_t
FPU_get_cw (void) FPU_get_cw (void)
{ {
#ifdef CGAL_ALWAYS_ROUND_TO_NEAREST #ifdef CGAL_ALWAYS_ROUND_TO_NEAREST
CGAL_assertion_code(FPU_CW_t cw; CGAL_IA_GETFPCW(cw);) FPU_CW_t cw;
CGAL_IA_GETFPCW(cw);
CGAL_assertion_code(FPU_CW_t mask = CGAL_FE_ROUNDING_MASK;) CGAL_assertion_code(FPU_CW_t mask = CGAL_FE_ROUNDING_MASK;)
CGAL_assertion((cw & mask) == (CGAL_FE_TONEAREST & mask)); CGAL_assertion((cw & mask) == (CGAL_FE_TONEAREST & mask));
return cw; return cw;