diff --git a/apps/code/variable_box_controller.cpp b/apps/code/variable_box_controller.cpp index 9b8b60e11..128cccdbd 100644 --- a/apps/code/variable_box_controller.cpp +++ b/apps/code/variable_box_controller.cpp @@ -57,7 +57,7 @@ void VariableBoxController::ContentViewController::didEnterResponderChain(Respon } static bool shouldAddObject(const char * name, int maxLength) { - if (strlen(name)+1 > maxLength) { + if (strlen(name)+1 > (size_t)maxLength) { return false; } assert(name != nullptr); diff --git a/apps/shared/storage_function.cpp b/apps/shared/storage_function.cpp index 57b835642..c4e61318b 100644 --- a/apps/shared/storage_function.cpp +++ b/apps/shared/storage_function.cpp @@ -27,7 +27,7 @@ void StorageFunction::setActive(bool active) { int StorageFunction::nameWithArgument(char * buffer, size_t bufferSize, char arg) { const char * functionName = fullName(); - int index = 0; + size_t index = 0; const char ofXSring[4] = {'(',arg,')', 0}; size_t ofXSringLength = strlen(ofXSring); while (*functionName != Ion::Storage::k_dotChar diff --git a/apps/shared/store_controller.cpp b/apps/shared/store_controller.cpp index 19ee1bb4d..1317572dc 100644 --- a/apps/shared/store_controller.cpp +++ b/apps/shared/store_controller.cpp @@ -269,6 +269,7 @@ bool StoreController::privateFillColumnWithFormula(Expression formula, Expressio variables[0][0] = 0; AppsContainer * appsContainer = ((TextFieldDelegateApp *)app())->container(); int nbOfVariables = formula.getVariables(*(appsContainer->globalContext()), isVariable, (char *)variables, k_maxSizeOfStoreSymbols); + (void) nbOfVariables; // Remove compilation warning of nused variable assert(nbOfVariables >= 0); int numberOfValuesToCompute = -1; int index = 0;