mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-12 16:03:42 +02:00
- helpers: fix warning in neutrinoMode_to_string();
cc1plus: warning: function may return address of local variable [-Wreturn-local-addr] ../src/system/helpers.cpp:114:16: note: declared here std::string res = s.str(); ^~~ Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -111,8 +111,7 @@ const char* neutrinoMode_to_string(int mode)
|
|||||||
return "NO_REZAP";
|
return "NO_REZAP";
|
||||||
default:
|
default:
|
||||||
s << std::hex << mode;
|
s << std::hex << mode;
|
||||||
std::string res = s.str();
|
return s.str().c_str();
|
||||||
return res.c_str();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user