]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Mark some variables as potentially unused. 18162/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 24 Feb 2025 22:07:34 +0000 (15:07 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 25 Feb 2025 00:25:58 +0000 (17:25 -0700)
source/base/tensor_product_polynomials.cc
source/base/tensor_product_polynomials_bubbles.cc
source/base/tensor_product_polynomials_const.cc

index 4116f11bc57447f98e9707cb1e4b8c7a3fc246bb..a83d08f3b8306c8df1751345bcb5f523cae538b1 100644 (file)
@@ -86,6 +86,8 @@ TensorProductPolynomials<dim, PolynomialType>::compute_index(
 {
   if constexpr (dim == 0)
     {
+      (void)i;
+      (void)indices;
       DEAL_II_NOT_IMPLEMENTED();
     }
   else
@@ -108,6 +110,7 @@ TensorProductPolynomials<dim, PolynomialType>::output_indices(
 {
   if constexpr (dim == 0)
     {
+      (void)out;
       DEAL_II_NOT_IMPLEMENTED();
     }
   else
@@ -201,6 +204,8 @@ TensorProductPolynomials<dim, PolynomialType>::compute_value(
 {
   if constexpr (dim == 0)
     {
+      (void)i;
+      (void)p;
       DEAL_II_NOT_IMPLEMENTED();
       return 0;
     }
@@ -227,6 +232,8 @@ TensorProductPolynomials<dim, PolynomialType>::compute_grad(
 {
   if constexpr (dim == 0)
     {
+      (void)i;
+      (void)p;
       DEAL_II_NOT_IMPLEMENTED();
       return {};
     }
@@ -272,6 +279,8 @@ TensorProductPolynomials<dim, PolynomialType>::compute_grad_grad(
 {
   if constexpr (dim == 0)
     {
+      (void)i;
+      (void)p;
       DEAL_II_NOT_IMPLEMENTED();
       return {};
     }
@@ -527,6 +536,12 @@ TensorProductPolynomials<dim, PolynomialType>::evaluate(
 {
   if constexpr (dim == 0)
     {
+      (void)p;
+      (void)values;
+      (void)grads;
+      (void)grad_grads;
+      (void)third_derivatives;
+      (void)fourth_derivatives;
       DEAL_II_NOT_IMPLEMENTED();
     }
   else
@@ -689,6 +704,8 @@ AnisotropicPolynomials<dim>::compute_index(
 {
   if constexpr (dim == 0)
     {
+      (void)i;
+      (void)indices;
       DEAL_II_NOT_IMPLEMENTED();
     }
   else
@@ -725,6 +742,8 @@ AnisotropicPolynomials<dim>::compute_value(const unsigned int i,
 {
   if constexpr (dim == 0)
     {
+      (void)i;
+      (void)p;
       DEAL_II_NOT_IMPLEMENTED();
       return {};
     }
@@ -750,6 +769,8 @@ AnisotropicPolynomials<dim>::compute_grad(const unsigned int i,
 {
   if constexpr (dim == 0)
     {
+      (void)i;
+      (void)p;
       DEAL_II_NOT_IMPLEMENTED();
       return {};
     }
@@ -787,6 +808,8 @@ AnisotropicPolynomials<dim>::compute_grad_grad(const unsigned int i,
 {
   if constexpr (dim == 0)
     {
+      (void)i;
+      (void)p;
       DEAL_II_NOT_IMPLEMENTED();
       return {};
     }
@@ -836,6 +859,12 @@ AnisotropicPolynomials<dim>::evaluate(
 {
   if constexpr (dim == 0)
     {
+      (void)p;
+      (void)values;
+      (void)grads;
+      (void)grad_grads;
+      (void)third_derivatives;
+      (void)fourth_derivatives;
       DEAL_II_NOT_IMPLEMENTED();
     }
   else
@@ -930,6 +959,7 @@ AnisotropicPolynomials<dim>::get_n_tensor_pols(
 {
   if constexpr (dim == 0)
     {
+      (void)pols;
       DEAL_II_NOT_IMPLEMENTED();
       return {};
     }
index fab074977ef36bea26ac4f6a0b85ca5b8a3e1a6b..3a42abd46a001710b169206fcac463106b8cf837 100644 (file)
@@ -100,8 +100,10 @@ TensorProductPolynomialsBubbles<dim>::compute_grad(const unsigned int i,
 {
   if constexpr (dim == 0)
     {
+      (void)i;
+      (void)p;
       DEAL_II_NOT_IMPLEMENTED();
-      return 0.;
+      return {};
     }
   else
     {
index 0e5d32ad55ab0f3f334f4fc25b7a1c81d7b521c1..bc8710f8f8ff1b32e0533c4d809a70e5bd5bdc8b 100644 (file)
@@ -88,8 +88,10 @@ TensorProductPolynomialsConst<dim>::compute_grad(const unsigned int i,
 {
   if constexpr (dim == 0)
     {
+      (void)i;
+      (void)p;
       DEAL_II_NOT_IMPLEMENTED();
-      return 0.;
+      return {};
     }
   else
     {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.