From: Jerett Cherry Date: Mon, 12 Aug 2024 20:52:11 +0000 (-0600) Subject: fix void pointer issue X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6dccb3305cf5f31c848b82b0b1c095a305eb994;p=dealii.git fix void pointer issue --- 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); }