-
Notifications
You must be signed in to change notification settings - Fork 3k
TESTS TOOLS - fix warnings #2818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ed4889c
f150f4f
0b94aae
25148af
90496ed
8070468
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -574,7 +574,6 @@ int greentea_parse_kv(char *out_key, | |
break; | ||
} | ||
} | ||
return 0; | ||
} | ||
|
||
/** | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,7 +123,6 @@ static int32_t utest_us_ticker_run() | |
callback(); | ||
} | ||
} | ||
return 0; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will this not then complain about a function expecting to return a value but not supplying one? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, the compilers (ARMCC, GCC and IAR) doesn't complain because this functions never returns. |
||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks a weird construct why not just
#ifdef MBED_STACK_STATS_ENABLED ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've used the same construct as the one which was already there: see here and there.
I believe the intent was to check that
MBED_STACK_STATS_ENABLED
is defined before testing its value.