[build] remove unneeded-internal-declaration warning (#6040)

By inlining static functions defined in the header file.
This commit is contained in:
paragdixit-g
2021-01-05 12:07:07 -08:00
committed by GitHub
parent 9d21f9cb1a
commit de93711e22
+2 -2
View File
@@ -80,7 +80,7 @@ using ot::Spinel::Decoder;
namespace ot {
namespace Spinel {
static otError SpinelStatusToOtError(spinel_status_t aError)
static inline otError SpinelStatusToOtError(spinel_status_t aError)
{
otError ret;
@@ -154,7 +154,7 @@ static otError SpinelStatusToOtError(spinel_status_t aError)
return ret;
}
static void LogIfFail(const char *aText, otError aError)
static inline void LogIfFail(const char *aText, otError aError)
{
OT_UNUSED_VARIABLE(aText);
OT_UNUSED_VARIABLE(aError);