From 7cb2b344c03cea5eab46f6344f57a723e7e532fc Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Tue, 11 Aug 2020 00:09:43 +0200 Subject: [PATCH] LibM: Mark compilation-unit-only functions as static This enables a nice warning in case a function becomes dead code. --- Libraries/LibM/math.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Libraries/LibM/math.cpp b/Libraries/LibM/math.cpp index 9d98d8439b..7b57ca27b9 100644 --- a/Libraries/LibM/math.cpp +++ b/Libraries/LibM/math.cpp @@ -155,7 +155,7 @@ double tanh(double x) NOEXCEPT return (plusX - minusX) / (plusX + minusX); } -double ampsin(double angle) NOEXCEPT +static double ampsin(double angle) NOEXCEPT { double looped_angle = fmod(M_PI + angle, M_TAU) - M_PI; double looped_angle_squared = looped_angle * looped_angle; @@ -536,5 +536,4 @@ double erfc(double x) NOEXCEPT { return 1 - erf(x); } - }