Skip to content

Commit e5133c4

Browse files
committed
add [[maybe_unused]] to function definition
1 parent 87249c7 commit e5133c4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Source/EmbeddedBoundary/WarpXFaceExtensions.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ namespace
7373
}
7474

7575

76-
#ifdef AMREX_USE_EB
7776
/**
7877
* \brief Compute the minimal area for stability for the face i, j, k with normal 'dim'.
7978
* (wrapper to allow using ComputeSStab as a non-templated function, by passing 'dim' as an argument)
@@ -83,7 +82,7 @@ namespace
8382
* \param[in] dx, dy, dz the mesh with in each direction
8483
* \param[in] dim normal direction to the plane in consideration (0 for x, 1 for y, 2 for z)
8584
*/
86-
[[nodiscard]]
85+
[[nodiscard]] [[maybe_unused]]
8786
AMREX_GPU_DEVICE AMREX_FORCE_INLINE
8887
amrex::Real
8988
ComputeSStab(const int i, const int j, const int k,
@@ -105,8 +104,6 @@ namespace
105104
return -1;
106105
}
107106

108-
#endif
109-
110107

111108
/**
112109
* \brief Whenever an unstable cell cannot be extended we increase its area to be the minimal for stability.

0 commit comments

Comments
 (0)