-
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
Conversation
…nd of greentea_serial.h
Some compiler will trigger warnings if code is located after the exit function because this function never returns (by the standard...).
This change isolate properly functions and variable declared when MBED_STACK_STATS_ENABLED is on.
retest uvisor |
6 similar comments
retest uvisor |
retest uvisor |
retest uvisor |
retest uvisor |
retest uvisor |
retest uvisor |
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.
LGTM
/morph test |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
Outputmbed Build Number: 957 All builds and test passed! |
@@ -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 comment
The 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 comment
The 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.
Actually the compiler was complaining of the return statement because it can't be reached.
|
||
static void send_heap_info(void); | ||
#if defined(MBED_STACK_STATS_ENABLED) && 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.
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.
Couple of comments @pan- |
This PR fix warnings issued by ARMCC, IAR and GCC when compiling utest and greentea.