Skip to content

[Cellular Library] Fix build warning message.#37

Merged
andysun2015 merged 4 commits intoFreeRTOS:mainfrom
andysun2015:cellular_fix_warning
Sep 6, 2021
Merged

[Cellular Library] Fix build warning message.#37
andysun2015 merged 4 commits intoFreeRTOS:mainfrom
andysun2015:cellular_fix_warning

Conversation

@andysun2015
Copy link
Copy Markdown
Contributor

Description of changes:

  • Fix build warning message.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

chinglee-iot
chinglee-iot previously approved these changes Sep 1, 2021
Comment thread docs/doxygen/pages.dox
Comment thread include/cellular_config_defaults.h
Comment thread test/unit-test/cellular_pktio_utest.c Outdated
Comment thread test/unit-test/cellular_pktio_utest.c Outdated
CellularContext_t context;
CellularCommInterface_t * pCommIntf = &CellularCommInterface;
CellularCommInterfaceHandle_t commInterfaceHandle;
CellularCommInterfaceHandle_t commInterfaceHandle = ( CellularCommInterfaceHandle_t ) malloc( sizeof( CellularCommInterfaceHandle_t ) );
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

malloc fails?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please refer to this change.

Comment thread test/unit-test/cellular_pktio_utest.c Outdated
Comment thread test/unit-test/cellular_pktio_utest.c
Comment thread test/unit-test/cellular_pktio_utest.c
Comment thread test/unit-test/cellular_at_core_utest.c Outdated
@@ -903,11 +903,10 @@ void test_Cellular_ATStrtoi_Happy_Path( void )
{
CellularATError_t cellularStatus = CELLULAR_AT_SUCCESS;
char * pStr = malloc( sizeof( char ) * ( strlen( CELLULAR_SAMPLE_STRTOL_HAPPY_CASE_STRING ) + 1 ) );
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

malloc

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please refer to this change.

Comment thread test/unit-test/cellular_at_core_utest.c Outdated
Comment thread test/unit-test/cellular_at_core_utest.c
Comment thread common/src/cellular_pktio.c Outdated
{
*ppAtResp = _Cellular_AtResponseNew();
LogDebug( ( "Allocat at response %p", *ppAtResp ) );
LogDebug( ( "Allocat at response %p", ( void * ) *ppAtResp ) );
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spelling error

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the correction.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please refer to this change for the correction.

@andysun2015 andysun2015 merged commit 2ca3253 into FreeRTOS:main Sep 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants