From bc7fef66be7fdc063cb62925609912e994780e0d Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Fri, 24 Mar 2023 13:43:26 +0100 Subject: gcc11 fix diff --git a/src/Arguments.h b/src/Arguments.h index 018326c..1f907a7 100644 --- a/src/Arguments.h +++ b/src/Arguments.h @@ -100,7 +100,7 @@ class Arguments { static const VERBOSITY Default_Verbosity = NORMAL ; static const unsigned long Default_Radius = 0 ; // there is no default radius for all file formats static const unsigned int Max_Algorithm = 3 ; - static const float Default_Goal = 100.0 ; + static constexpr float Default_Goal = 100.0 ; static const DEBUGCOMMAND Default_DebugCommand = NONE ; static const bool Default_Check = false ; static const unsigned int Default_DebugLevel = 0 ; diff --git a/src/ProgressOutput.h b/src/ProgressOutput.h index 3a235a3..394939f 100644 --- a/src/ProgressOutput.h +++ b/src/ProgressOutput.h @@ -64,7 +64,7 @@ class ProgressOutput { **/ void done (float rate, float avgweight = NoAvgWeight) const ; - static const float NoAvgWeight = -1.0 ; + static constexpr float NoAvgWeight = -1.0 ; protected: std::string vcompose (const char *msgfmt, va_list ap) const ; -- 2.37.3