Skip to content

Commit

Permalink
target: UBLOX: Fix build warning in UBLOX_AT_CellularNetwork.cpp
Browse files Browse the repository at this point in the history
Fix this build warning seen when building with ARMCC

Compile [ 13.7%]: UBLOX_AT_CellularNetwork.cpp
[Warning] UBLOX_AT_CellularNetwork.cpp@65,0:  ARMmbed#111-D: statement is unreachable
  • Loading branch information
Naveen Kaje authored and rajkan01 committed Mar 7, 2019
1 parent 863caf3 commit 51ccbf5
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ UBLOX_AT_CellularNetwork::~UBLOX_AT_CellularNetwork()

nsapi_error_t UBLOX_AT_CellularNetwork::set_access_technology_impl(RadioAccessTechnology opRat)
{
nsapi_error_t ret = NSAPI_ERROR_OK;

switch (opRat) {
#if defined(TARGET_UBLOX_C030_U201) || defined(TARGET_UBLOX_C027)
case RAT_GSM:
Expand All @@ -58,9 +60,9 @@ nsapi_error_t UBLOX_AT_CellularNetwork::set_access_technology_impl(RadioAccessTe
#endif
default: {
_op_act = RAT_UNKNOWN;
return NSAPI_ERROR_UNSUPPORTED;
ret = NSAPI_ERROR_UNSUPPORTED;
}
}

return NSAPI_ERROR_OK;
return(ret);
}

0 comments on commit 51ccbf5

Please sign in to comment.