Skip to content

Commit

Permalink
switch to [[maybe_unused]] because were on C++17
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahm-LANL committed Nov 29, 2024
1 parent 5b90563 commit 1d938cf
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions singularity-eos/eos/modifiers/eos_unitsystem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,12 @@ namespace singularity {
using namespace eos_base;

// tag dispatch for constructors for UnitSystem
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-variable"
namespace eos_units_init {
static struct ThermalUnitsInit {
[[maybe_unused]] static struct ThermalUnitsInit {
} thermal_units_init_tag;
static struct LengthTimeUnitsInit {
[[maybe_unused]] static struct LengthTimeUnitsInit {
} length_time_units_init_tag;
} // namespace eos_units_init
#pragma GCC diagnostic pop

template <typename T>
class UnitSystem : public EosBase<UnitSystem<T>> {
Expand Down

0 comments on commit 1d938cf

Please sign in to comment.