mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-30 23:30:16 +00:00
Silence unused parameter warnings
This commit is contained in:
parent
fd6501207f
commit
1e7426e549
@ -1450,7 +1450,8 @@ void MarlinUI::update() {
|
|||||||
#if ENABLED(STATUS_MESSAGE_SCROLLING)
|
#if ENABLED(STATUS_MESSAGE_SCROLLING)
|
||||||
status_scroll_offset = 0;
|
status_scroll_offset = 0;
|
||||||
#endif
|
#endif
|
||||||
|
#else // HAS_SPI_LCD
|
||||||
|
UNUSED(persist);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
TERN_(EXTENSIBLE_UI, ExtUI::onStatusChanged(status_message));
|
TERN_(EXTENSIBLE_UI, ExtUI::onStatusChanged(status_message));
|
||||||
|
@ -2363,7 +2363,7 @@ void MarlinSettings::postprocess() {
|
|||||||
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
||||||
|
|
||||||
inline void ubl_invalid_slot(const int s) {
|
inline void ubl_invalid_slot(const int s) {
|
||||||
#if ENABLED(EEPROM_CHITCHAT)
|
#if BOTH(EEPROM_CHITCHAT, DEBUG_OUT)
|
||||||
DEBUG_ECHOLNPGM("?Invalid slot.");
|
DEBUG_ECHOLNPGM("?Invalid slot.");
|
||||||
DEBUG_ECHO(s);
|
DEBUG_ECHO(s);
|
||||||
DEBUG_ECHOLNPGM(" mesh slots available.");
|
DEBUG_ECHOLNPGM(" mesh slots available.");
|
||||||
|
@ -69,7 +69,7 @@ hotend_pid_t;
|
|||||||
typedef IF<(LPQ_MAX_LEN > 255), uint16_t, uint8_t>::type lpq_ptr_t;
|
typedef IF<(LPQ_MAX_LEN > 255), uint16_t, uint8_t>::type lpq_ptr_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define PID_PARAM(F,H) _PID_##F(TERN(PID_PARAMS_PER_HOTEND, H, 0))
|
#define PID_PARAM(F,H) _PID_##F(TERN(PID_PARAMS_PER_HOTEND, H, 0 & H)) // Always use 'H' to suppress warning
|
||||||
#define _PID_Kp(H) TERN(PIDTEMP, Temperature::temp_hotend[H].pid.Kp, NAN)
|
#define _PID_Kp(H) TERN(PIDTEMP, Temperature::temp_hotend[H].pid.Kp, NAN)
|
||||||
#define _PID_Ki(H) TERN(PIDTEMP, Temperature::temp_hotend[H].pid.Ki, NAN)
|
#define _PID_Ki(H) TERN(PIDTEMP, Temperature::temp_hotend[H].pid.Ki, NAN)
|
||||||
#define _PID_Kd(H) TERN(PIDTEMP, Temperature::temp_hotend[H].pid.Kd, NAN)
|
#define _PID_Kd(H) TERN(PIDTEMP, Temperature::temp_hotend[H].pid.Kd, NAN)
|
||||||
|
@ -70,7 +70,7 @@ class Sd2Card {
|
|||||||
bool readBlock(uint32_t block, uint8_t* dst);
|
bool readBlock(uint32_t block, uint8_t* dst);
|
||||||
bool writeBlock(uint32_t blockNumber, const uint8_t* src);
|
bool writeBlock(uint32_t blockNumber, const uint8_t* src);
|
||||||
|
|
||||||
bool readCSD(csd_t* csd) { return true; };
|
bool readCSD(csd_t*) { return true; }
|
||||||
|
|
||||||
uint32_t cardSize();
|
uint32_t cardSize();
|
||||||
static bool isInserted();
|
static bool isInserted();
|
||||||
|
Loading…
Reference in New Issue
Block a user