From a4044c4b9122da7bdbbad98fecbdddfefec64a8a Mon Sep 17 00:00:00 2001 From: Luc <8822552+luc-github@users.noreply.github.com> Date: Tue, 22 Dec 2020 19:27:01 +0100 Subject: [PATCH] Hide warnings in updater only mode --- esp3d/command.cpp | 1 + esp3d/espcom.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/esp3d/command.cpp b/esp3d/command.cpp index 6b4f4202..314f3a52 100644 --- a/esp3d/command.cpp +++ b/esp3d/command.cpp @@ -162,6 +162,7 @@ bool COMMAND::execute_command (int cmd, String cmd_params, tpipe output, level_a { bool response = true; level_authenticate_type auth_type = auth_level; + (void)auth_type; //avoid warning if updater only #ifdef AUTHENTICATION_FEATURE if (isadmin(cmd_params)) { diff --git a/esp3d/espcom.cpp b/esp3d/espcom.cpp index 22803845..aac28216 100644 --- a/esp3d/espcom.cpp +++ b/esp3d/espcom.cpp @@ -390,6 +390,7 @@ void ESPCOM::send2TCP (const char * data, bool async) bool ESPCOM::processFromSerial (bool async) { uint8_t i; + (void)i; //avoid warning if updater only //check UART for data if (ESPCOM::available(DEFAULT_PRINTER_PIPE)) { size_t len = ESPCOM::available(DEFAULT_PRINTER_PIPE);