mirror of
https://github.com/espressif/openthread.git
synced 2026-08-24 19:29:52 +00:00
Require compiler warnings. (#418)
This commit is contained in:
@@ -143,7 +143,7 @@ void TestDiag()
|
||||
|
||||
// initialize platform layer
|
||||
int argc = 2;
|
||||
char *argv[2] = {(char *)"test_diag", (char *)"1"};
|
||||
char *argv[8] = {(char *)"test_diag", (char *)"1"};
|
||||
PlatformInit(argc, argv);
|
||||
|
||||
// initialize diagnostics module
|
||||
@@ -156,12 +156,11 @@ void TestDiag()
|
||||
{
|
||||
char string[50];
|
||||
int length = strlen(tests[i].command);
|
||||
|
||||
char *cmd;
|
||||
char *argv[8];
|
||||
int argc = 0;
|
||||
char *output = NULL;
|
||||
|
||||
argc = 0;
|
||||
|
||||
memcpy(string, tests[i].command, length + 1);
|
||||
|
||||
for (cmd = string + 1; (cmd < string + length) && (cmd != NULL); ++cmd)
|
||||
|
||||
Reference in New Issue
Block a user