mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-03 08:39:49 +02:00
Fix warning
This commit is contained in:
parent
ee158b521d
commit
c635a9cd01
1 changed files with 2 additions and 0 deletions
|
@ -97,6 +97,7 @@ static double stod(const std::string& str)
|
|||
static long double strtold(const char* str, char** endptr)
|
||||
{
|
||||
#ifdef NO_CPP11_STRING
|
||||
std::ignore = endptr;
|
||||
return cpt::stod(str);
|
||||
#else
|
||||
return std::strtold(str, endptr);
|
||||
|
@ -106,6 +107,7 @@ static long double strtold(const char* str, char** endptr)
|
|||
static float strtof(const char* str, char** endptr)
|
||||
{
|
||||
#ifdef NO_CPP11_STRING
|
||||
std::ignore = endptr;
|
||||
return (float)cpt::stod(str);
|
||||
#else
|
||||
return std::strtof(str, endptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue