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
     if (Wire.available()) *((uint8_t*)pos + c) = Wire.read();
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
     #endif
359
     #endif
360
 
360
 
361
     if (PAGE_CONTAINS(41, 48)) {
361
     if (PAGE_CONTAINS(41, 48)) {
362
-      char buffer[10];
362
+      char buffer[13];
363
       duration_t elapsed = print_job_timer.duration();
363
       duration_t elapsed = print_job_timer.duration();
364
       bool has_days = (elapsed.value >= 60*60*24L);
364
       bool has_days = (elapsed.value >= 60*60*24L);
365
       uint8_t len = elapsed.toDigital(buffer, has_days);
365
       uint8_t len = elapsed.toDigital(buffer, has_days);

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

151
           #endif
151
           #endif
152
           {
152
           {
153
             if (!GET_ARRAY_IS_DIGITAL(x)) {
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
               SERIAL_ECHO(buffer);
155
               SERIAL_ECHO(buffer);
156
             }
156
             }
157
             else {
157
             else {
213
         }
213
         }
214
         else {
214
         else {
215
           if (IS_ANALOG(pin)) {
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
             SERIAL_ECHO(buffer);
217
             SERIAL_ECHO(buffer);
218
             SERIAL_ECHOPGM("   ");
218
             SERIAL_ECHOPGM("   ");
219
           }
219
           }

Loading…
Cancel
Save