Browse Source

Suppress some compile warnings

Scott Lahteine 6 years ago
parent
commit
9c0e05552e

+ 1
- 2
Marlin/src/HAL/shared/I2cEeprom.cpp View File

@@ -155,5 +155,4 @@ void eeprom_read_block(void* pos, const void* eeprom_address, size_t n) {
155 155
     if (Wire.available()) *((uint8_t*)pos + c) = Wire.read();
156 156
 }
157 157
 
158
-
159
-#endif // ENABLED(I2C_EEPROM)
158
+#endif // I2C_EEPROM

+ 1
- 1
Marlin/src/lcd/dogm/status_screen_DOGM.cpp View File

@@ -359,7 +359,7 @@ void lcd_impl_status_screen_0() {
359 359
     #endif
360 360
 
361 361
     if (PAGE_CONTAINS(41, 48)) {
362
-      char buffer[10];
362
+      char buffer[13];
363 363
       duration_t elapsed = print_job_timer.duration();
364 364
       bool has_days = (elapsed.value >= 60*60*24L);
365 365
       uint8_t len = elapsed.toDigital(buffer, has_days);

+ 2
- 2
Marlin/src/pins/pinsDebug.h View File

@@ -151,7 +151,7 @@ inline void report_pin_state_extended(pin_t pin, bool ignore, bool extended = fa
151 151
           #endif
152 152
           {
153 153
             if (!GET_ARRAY_IS_DIGITAL(x)) {
154
-              sprintf_P(buffer, PSTR("Analog in = %5ld"), analogRead(DIGITAL_PIN_TO_ANALOG_PIN(pin)));
154
+              sprintf_P(buffer, PSTR("Analog in = %5ld"), (long)analogRead(DIGITAL_PIN_TO_ANALOG_PIN(pin)));
155 155
               SERIAL_ECHO(buffer);
156 156
             }
157 157
             else {
@@ -213,7 +213,7 @@ inline void report_pin_state_extended(pin_t pin, bool ignore, bool extended = fa
213 213
         }
214 214
         else {
215 215
           if (IS_ANALOG(pin)) {
216
-            sprintf_P(buffer, PSTR("   Analog in = %5ld"), analogRead(DIGITAL_PIN_TO_ANALOG_PIN(pin)));
216
+            sprintf_P(buffer, PSTR("   Analog in = %5ld"), (long)analogRead(DIGITAL_PIN_TO_ANALOG_PIN(pin)));
217 217
             SERIAL_ECHO(buffer);
218 218
             SERIAL_ECHOPGM("   ");
219 219
           }

Loading…
Cancel
Save