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:  #111-D: statement is unreachable
  • Loading branch information
Naveen Kaje authored and Cruz Monrreal II committed Feb 21, 2019
1 parent 9891168 commit 88c5b8d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ AT_CellularNetwork::RegistrationMode UBLOX_AT_CellularNetwork::has_registration(

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 @@ -63,9 +65,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 88c5b8d

Please sign in to comment.