Skip to content
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

[Cellular Library] Fix build warning message. #37

Merged
merged 4 commits into from
Sep 6, 2021

Conversation

andysun2015
Copy link
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
docs/doxygen/pages.dox Show resolved Hide resolved
include/cellular_config_defaults.h Show resolved Hide resolved
@@ -1679,7 +1676,7 @@ void test__Cellular_PktioSendAtCmd_Invalid_String( void )
CellularPktStatus_t pktStatus = CELLULAR_PKT_STATUS_OK;
CellularContext_t context;
CellularCommInterface_t * pCommIntf = &CellularCommInterface;
CellularCommInterfaceHandle_t commInterfaceHandle;
CellularCommInterfaceHandle_t commInterfaceHandle = ( CellularCommInterfaceHandle_t ) malloc( sizeof( CellularCommInterfaceHandle_t ) );
Copy link
Member

Choose a reason for hiding this comment

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

malloc fails?

Copy link
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.

@@ -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
Member

Choose a reason for hiding this comment

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

malloc

Copy link
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.

@@ -676,7 +676,7 @@ static CellularPktStatus_t _handleMsgType( CellularContext_t * pContext,
if( *ppAtResp == NULL )
{
*ppAtResp = _Cellular_AtResponseNew();
LogDebug( ( "Allocat at response %p", *ppAtResp ) );
LogDebug( ( "Allocat at response %p", ( void * ) *ppAtResp ) );
Copy link
Member

Choose a reason for hiding this comment

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

Spelling error

Copy link
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
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