From 08e3dd835d00a142007deec19d51f3adc39fe427 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 17 Nov 2019 08:44:07 -0500 Subject: [PATCH] reducing warnings --- firmware/console/binary/tunerstudio.cpp | 8 ++++---- firmware/hw_layer/mmc_card.cpp | 7 +++++-- firmware/hw_layer/trigger_input_icu.cpp | 4 ++-- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/firmware/console/binary/tunerstudio.cpp b/firmware/console/binary/tunerstudio.cpp index 06ea9cbcd1..ee7efbc621 100644 --- a/firmware/console/binary/tunerstudio.cpp +++ b/firmware/console/binary/tunerstudio.cpp @@ -306,11 +306,11 @@ static void handleGetStructContent(ts_channel_s *tsChannel, int structId, int si * read log file content for rusEfi console */ static void handleReadFileContent(ts_channel_s *tsChannel, short fileId, short offset, short length) { -#if EFI_FILE_LOGGING - readLogFileContent(tsChannel->crcReadBuffer, fileId, offset, length); -#else +//#if EFI_FILE_LOGGING +// readLogFileContent(tsChannel->crcReadBuffer, fileId, offset, length); +//#else UNUSED(tsChannel); UNUSED(fileId); UNUSED(offset); UNUSED(length); -#endif /* EFI_FILE_LOGGING */ +//#endif /* EFI_FILE_LOGGING */ } /** diff --git a/firmware/hw_layer/mmc_card.cpp b/firmware/hw_layer/mmc_card.cpp index 97ff51147c..a113c81004 100644 --- a/firmware/hw_layer/mmc_card.cpp +++ b/firmware/hw_layer/mmc_card.cpp @@ -300,10 +300,10 @@ static void listDirectory(const char *path) { static int errorReported = FALSE; // this is used to report the error only once +#if 0 void readLogFileContent(char *buffer, short fileId, short offset, short length) { - } - +#endif /** * @brief Appends specified line to the current log file @@ -359,8 +359,10 @@ static void mmcUnMount(void) { scheduleMsg(&logger, "MMC/SD card removed"); } +#if HAL_USE_USB_MSD #define RAMDISK_BLOCK_SIZE 512U static uint8_t blkbuf[RAMDISK_BLOCK_SIZE]; +#endif /* HAL_USE_USB_MSD */ /* * MMC card mount. @@ -433,6 +435,7 @@ static void MMCmount(void) { } static THD_FUNCTION(MMCmonThread, arg) { + (void)arg; chRegSetThreadName("MMC_Monitor"); while (true) { diff --git a/firmware/hw_layer/trigger_input_icu.cpp b/firmware/hw_layer/trigger_input_icu.cpp index 7d4e216383..1c06d11374 100644 --- a/firmware/hw_layer/trigger_input_icu.cpp +++ b/firmware/hw_layer/trigger_input_icu.cpp @@ -80,7 +80,7 @@ static void shaftPeriodCallback(bool isPrimary) { } void turnOnTriggerInputPin(const char *msg, int index, bool isTriggerShaft) { - + (void)msg; brain_pin_e brainPin = isTriggerShaft ? CONFIGB(triggerInputPins)[index] : engineConfiguration->camInputs[index]; if (brainPin == GPIO_UNASSIGNED) { return; @@ -103,7 +103,7 @@ void turnOffTriggerInputPin(brain_pin_e brainPin) { } void setPrimaryChannel(brain_pin_e brainPin) { - + (void)brainPin; } /*==========================================================================*/