[libc-commits] [libc] [libc][math] Fix -Wshadow warnings in FMod.h (PR #196346)
Nico Weber via libc-commits
libc-commits at lists.llvm.org
Thu May 7 08:14:12 PDT 2026
https://github.com/nico created https://github.com/llvm/llvm-project/pull/196346
The using statement inside the lambda is redundant with the same using 4 lines up.
No behavior change.
>From 0a750ee2df41e4a6e070f354b74fa32855a70e71 Mon Sep 17 00:00:00 2001
From: Nico Weber <thakis at chromium.org>
Date: Thu, 7 May 2026 11:13:09 -0400
Subject: [PATCH] [libc][math] Fix -Wshadow warnings in FMod.h
The using statement inside the lambda is redundant with the same using
4 lines up.
No behavior change.
---
libc/src/__support/FPUtil/generic/FMod.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/libc/src/__support/FPUtil/generic/FMod.h b/libc/src/__support/FPUtil/generic/FMod.h
index b74b8b7d1b18d..1a321231a8eb9 100644
--- a/libc/src/__support/FPUtil/generic/FMod.h
+++ b/libc/src/__support/FPUtil/generic/FMod.h
@@ -171,7 +171,6 @@ class FMod {
using StorageType = typename FPB::StorageType;
LIBC_INLINE static constexpr bool pre_check(T x, T y, T &out) {
- using FPB = fputil::FPBits<T>;
const T quiet_nan = FPB::quiet_nan().get_val();
FPB sx(x), sy(y);
if (LIBC_LIKELY(!sy.is_zero() && !sy.is_inf_or_nan() &&
More information about the libc-commits
mailing list