mirror of
https://github.com/espressif/openthread.git
synced 2026-07-08 13:20:25 +00:00
turn on warnings and errors (#280)
This commit is contained in:
committed by
Jonathan Hui
parent
3b4bf8594e
commit
318fe4b415
+36
-5
@@ -178,6 +178,9 @@ void Interpreter::ProcessHelp(int argc, char *argv[])
|
||||
{
|
||||
sServer->OutputFormat("%s\r\n", sCommands[i].mName);
|
||||
}
|
||||
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
}
|
||||
|
||||
void Interpreter::ProcessChannel(int argc, char *argv[])
|
||||
@@ -376,6 +379,8 @@ void Interpreter::ProcessEidCache(int argc, char *argv[])
|
||||
}
|
||||
|
||||
exit:
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
AppendResult(kThreadError_None);
|
||||
}
|
||||
|
||||
@@ -384,6 +389,8 @@ void Interpreter::ProcessExtAddress(int argc, char *argv[])
|
||||
OutputBytes(otGetExtendedAddress(), OT_EXT_ADDRESS_SIZE);
|
||||
sServer->OutputFormat("\r\n");
|
||||
AppendResult(kThreadError_None);
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
}
|
||||
|
||||
void Interpreter::ProcessExtPanId(int argc, char *argv[])
|
||||
@@ -535,6 +542,8 @@ void Interpreter::ProcessLeaderData(int argc, char *argv[])
|
||||
sServer->OutputFormat("Leader Router ID: %d\r\n", leaderData.mLeaderRouterId);
|
||||
|
||||
exit:
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
AppendResult(error);
|
||||
}
|
||||
|
||||
@@ -589,7 +598,9 @@ exit:
|
||||
void Interpreter::ProcessMode(int argc, char *argv[])
|
||||
{
|
||||
ThreadError error = kThreadError_None;
|
||||
otLinkModeConfig linkMode = {};
|
||||
otLinkModeConfig linkMode;
|
||||
|
||||
memset(&linkMode, 0, sizeof(otLinkModeConfig));
|
||||
|
||||
if (argc == 0)
|
||||
{
|
||||
@@ -657,6 +668,8 @@ void Interpreter::ProcessNetworkDataRegister(int argc, char *argv[])
|
||||
SuccessOrExit(error = otSendServerData());
|
||||
|
||||
exit:
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
AppendResult(error);
|
||||
}
|
||||
|
||||
@@ -741,6 +754,8 @@ void Interpreter::HandleEchoResponse(void *aContext, Message &aMessage, const Ip
|
||||
}
|
||||
|
||||
sServer->OutputFormat("\r\n");
|
||||
|
||||
(void)aContext;
|
||||
}
|
||||
|
||||
void Interpreter::ProcessPing(int argc, char *argv[])
|
||||
@@ -806,14 +821,18 @@ void Interpreter::HandlePingTimer(void *aContext)
|
||||
{
|
||||
sPingTimer.Start(sInterval);
|
||||
}
|
||||
|
||||
(void)aContext;
|
||||
}
|
||||
|
||||
ThreadError Interpreter::ProcessPrefixAdd(int argc, char *argv[])
|
||||
{
|
||||
ThreadError error = kThreadError_None;
|
||||
otBorderRouterConfig config = {};
|
||||
otBorderRouterConfig config;
|
||||
int argcur = 0;
|
||||
|
||||
memset(&config, 0, sizeof(otBorderRouterConfig));
|
||||
|
||||
char *prefixLengthStr;
|
||||
char *endptr;
|
||||
|
||||
@@ -898,9 +917,11 @@ exit:
|
||||
ThreadError Interpreter::ProcessPrefixRemove(int argc, char *argv[])
|
||||
{
|
||||
ThreadError error = kThreadError_None;
|
||||
struct otIp6Prefix prefix = {};
|
||||
struct otIp6Prefix prefix;
|
||||
int argcur = 0;
|
||||
|
||||
memset(&prefix, 0, sizeof(otIp6Prefix));
|
||||
|
||||
char *prefixLengthStr;
|
||||
char *endptr;
|
||||
|
||||
@@ -923,6 +944,7 @@ ThreadError Interpreter::ProcessPrefixRemove(int argc, char *argv[])
|
||||
error = otRemoveBorderRouter(&prefix);
|
||||
|
||||
exit:
|
||||
(void)argc;
|
||||
return error;
|
||||
}
|
||||
|
||||
@@ -967,14 +989,18 @@ void Interpreter::ProcessRloc16(int argc, char *argv[])
|
||||
{
|
||||
sServer->OutputFormat("%04x\r\n", otGetRloc16());
|
||||
sServer->OutputFormat("Done\r\n");
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
}
|
||||
|
||||
ThreadError Interpreter::ProcessRouteAdd(int argc, char *argv[])
|
||||
{
|
||||
ThreadError error = kThreadError_None;
|
||||
otExternalRouteConfig config = {};
|
||||
otExternalRouteConfig config;
|
||||
int argcur = 0;
|
||||
|
||||
memset(&config, 0, sizeof(otExternalRouteConfig));
|
||||
|
||||
char *prefixLengthStr;
|
||||
char *endptr;
|
||||
|
||||
@@ -1029,9 +1055,10 @@ exit:
|
||||
ThreadError Interpreter::ProcessRouteRemove(int argc, char *argv[])
|
||||
{
|
||||
ThreadError error = kThreadError_None;
|
||||
struct otIp6Prefix prefix = {};
|
||||
struct otIp6Prefix prefix;
|
||||
int argcur = 0;
|
||||
|
||||
memset(&prefix, 0, sizeof(struct otIp6Prefix));
|
||||
char *prefixLengthStr;
|
||||
char *endptr;
|
||||
|
||||
@@ -1293,6 +1320,8 @@ void Interpreter::ProcessThread(int argc, char *argv[])
|
||||
}
|
||||
|
||||
exit:
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
AppendResult(error);
|
||||
}
|
||||
|
||||
@@ -1300,6 +1329,8 @@ void Interpreter::ProcessVersion(int argc, char *argv[])
|
||||
{
|
||||
sServer->OutputFormat("%s\r\n", PACKAGE_NAME "/" PACKAGE_VERSION "; " __DATE__ " " __TIME__);
|
||||
AppendResult(kThreadError_None);
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
}
|
||||
|
||||
void Interpreter::ProcessWhitelist(int argc, char *argv[])
|
||||
|
||||
Reference in New Issue
Block a user