#else constexpr doesn't do anything it's just a compiler warning (#4743)

This commit is contained in:
Magnus Gille
2025-12-09 05:11:56 -08:00
committed by GitHub
parent bcf486cfc3
commit 06ed87db09
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ namespace elevationChart {
#if defined(CXX17)
#define CONSTEXPR constexpr
#define CONSTEXPR_FUNC constexpr
#else constexpr
#else
#define CONSTEXPR static const
#define CONSTEXPR_FUNC
#endif

View File

@@ -856,7 +856,7 @@ void ElevationZoomedMeterWidget::calcMinAndMax()
#if defined(CXX17)
#define CONSTEXPR constexpr
#define CONSTEXPR_FUNC constexpr
#else constexpr
#else
#define CONSTEXPR static const
#define CONSTEXPR_FUNC
#endif