mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibM: Mark compilation-unit-only functions as static
This enables a nice warning in case a function becomes dead code.
This commit is contained in:
parent
f2f0c22052
commit
7cb2b344c0
Notes:
sideshowbarker
2024-07-19 03:42:24 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/7cb2b344c03 Pull-request: https://github.com/SerenityOS/serenity/pull/3096 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/stelar7
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue