From a6dccb3305cf5f31c848b82b0b1c095a305eb994 Mon Sep 17 00:00:00 2001 From: Jerett Cherry Date: Mon, 12 Aug 2024 14:52:11 -0600 Subject: [PATCH] fix void pointer issue --- source/base/function_lib.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/base/function_lib.cc b/source/base/function_lib.cc index bf1dad3ccd..90d7b90c7c 100644 --- a/source/base/function_lib.cc +++ b/source/base/function_lib.cc @@ -1941,7 +1941,7 @@ namespace Functions FourierCosineFunction::value(const Point &p, const unsigned int component) const { - (void)component; + [[maybe_unused]]component; AssertIndexRange(component, 1); return std::cos(fourier_coefficients * p); } @@ -1953,7 +1953,7 @@ namespace Functions FourierCosineFunction::gradient(const Point &p, const unsigned int component) const { - (void)component; + [[maybe_unused]]component; AssertIndexRange(component, 1); return -fourier_coefficients * std::sin(fourier_coefficients * p); } @@ -1965,7 +1965,7 @@ namespace Functions FourierCosineFunction::laplacian(const Point &p, const unsigned int component) const { - (void)component; + [[maybe_unused]]component; AssertIndexRange(component, 1); return (fourier_coefficients * fourier_coefficients) * (-std::cos(fourier_coefficients * p)); @@ -1991,7 +1991,7 @@ namespace Functions FourierSineFunction::value(const Point &p, const unsigned int component) const { - (void)component; + [[maybe_unused]]component; AssertIndexRange(component, 1); return std::sin(fourier_coefficients * p); } @@ -2003,7 +2003,7 @@ namespace Functions FourierSineFunction::gradient(const Point &p, const unsigned int component) const { - (void)component; + [[maybe_unused]]component; AssertIndexRange(component, 1); return fourier_coefficients * std::cos(fourier_coefficients * p); } -- 2.39.5