Browse Source

Suppress U8glib build warnings

pull/1/head
Scott Lahteine 7 years ago
parent
commit
c89649b46e
  1. 3
      Marlin/src/HAL/HAL_DUE/u8g_com_HAL_DUE_shared_hw_spi.cpp
  2. 3
      Marlin/src/HAL/HAL_DUE/u8g_com_HAL_DUE_st7920_sw_spi.cpp
  3. 3
      Marlin/src/HAL/HAL_LPC1768/u8g_com_HAL_LPC1768_hw_spi.cpp
  4. 3
      Marlin/src/HAL/HAL_LPC1768/u8g_com_HAL_LPC1768_ssd_hw_i2c.cpp
  5. 3
      Marlin/src/HAL/HAL_LPC1768/u8g_com_HAL_LPC1768_st7920_hw_spi.cpp
  6. 3
      Marlin/src/HAL/HAL_LPC1768/u8g_com_HAL_LPC1768_st7920_sw_spi.cpp
  7. 3
      Marlin/src/HAL/HAL_LPC1768/u8g_com_HAL_LPC1768_sw_spi.cpp
  8. 3
      Marlin/src/lcd/dogm/u8g_dev_ssd1306_sh1106_128x64_I2C.cpp
  9. 3
      Marlin/src/lcd/dogm/u8g_dev_st7565_64128n_HAL.cpp
  10. 3
      Marlin/src/lcd/dogm/u8g_dev_st7920_128x64_HAL.cpp
  11. 3
      Marlin/src/lcd/dogm/u8g_dev_uc1701_mini12864_HAL.cpp
  12. 3
      Marlin/src/lcd/dogm/ultralcd_st7920_u8glib_rrd_AVR.cpp
  13. 3
      Marlin/src/lcd/lcdprint_u8g.cpp
  14. 4
      Marlin/src/lcd/ultralcd.cpp
  15. 4
      Marlin/src/lcd/ultralcd_impl_DOGM.h

3
Marlin/src/HAL/HAL_DUE/u8g_com_HAL_DUE_shared_hw_spi.cpp

@ -62,7 +62,10 @@
#if ENABLED(DOGLCD) #if ENABLED(DOGLCD)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
#include <U8glib.h> #include <U8glib.h>
#pragma GCC diagnostic pop
#include "../../Marlin.h" #include "../../Marlin.h"

3
Marlin/src/HAL/HAL_DUE/u8g_com_HAL_DUE_st7920_sw_spi.cpp

@ -59,7 +59,10 @@
#if ENABLED(DOGLCD) #if ENABLED(DOGLCD)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
#include <U8glib.h> #include <U8glib.h>
#pragma GCC diagnostic pop
#include <Arduino.h> #include <Arduino.h>
#include "../Delay.h" #include "../Delay.h"

3
Marlin/src/HAL/HAL_LPC1768/u8g_com_HAL_LPC1768_hw_spi.cpp

@ -60,7 +60,10 @@
#if ENABLED(DOGLCD) #if ENABLED(DOGLCD)
//#include <inttypes.h> //#include <inttypes.h>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
#include <U8glib.h> #include <U8glib.h>
#pragma GCC diagnostic pop
#define SPI_FULL_SPEED 0 #define SPI_FULL_SPEED 0
#define SPI_HALF_SPEED 1 #define SPI_HALF_SPEED 1

3
Marlin/src/HAL/HAL_LPC1768/u8g_com_HAL_LPC1768_ssd_hw_i2c.cpp

@ -81,7 +81,10 @@
#if ENABLED(DOGLCD) #if ENABLED(DOGLCD)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
#include <U8glib.h> #include <U8glib.h>
#pragma GCC diagnostic pop
#define I2C_SLA (0x3C*2) #define I2C_SLA (0x3C*2)
//#define I2C_CMD_MODE 0x080 //#define I2C_CMD_MODE 0x080

3
Marlin/src/HAL/HAL_LPC1768/u8g_com_HAL_LPC1768_st7920_hw_spi.cpp

@ -60,7 +60,10 @@
#if ENABLED(DOGLCD) #if ENABLED(DOGLCD)
//#include <inttypes.h> //#include <inttypes.h>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
#include <U8glib.h> #include <U8glib.h>
#pragma GCC diagnostic pop
#include "../Delay.h" #include "../Delay.h"
#define SPI_FULL_SPEED 0 #define SPI_FULL_SPEED 0

3
Marlin/src/HAL/HAL_LPC1768/u8g_com_HAL_LPC1768_st7920_sw_spi.cpp

@ -59,7 +59,10 @@
#if ENABLED(DOGLCD) #if ENABLED(DOGLCD)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
#include <U8glib.h> #include <U8glib.h>
#pragma GCC diagnostic pop
#include "SoftwareSPI.h" #include "SoftwareSPI.h"
#include "../Delay.h" #include "../Delay.h"

3
Marlin/src/HAL/HAL_LPC1768/u8g_com_HAL_LPC1768_sw_spi.cpp

@ -59,7 +59,10 @@
#if ENABLED(DOGLCD) #if ENABLED(DOGLCD)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
#include <U8glib.h> #include <U8glib.h>
#pragma GCC diagnostic pop
#include "SoftwareSPI.h" #include "SoftwareSPI.h"
#define SPI_SPEED 2 // About 2 MHz #define SPI_SPEED 2 // About 2 MHz

3
Marlin/src/lcd/dogm/u8g_dev_ssd1306_sh1106_128x64_I2C.cpp

@ -69,7 +69,10 @@
#if ENABLED(DOGLCD) #if ENABLED(DOGLCD)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
#include <U8glib.h> #include <U8glib.h>
#pragma GCC diagnostic pop
#include "HAL_LCD_com_defines.h" #include "HAL_LCD_com_defines.h"
#define WIDTH 128 #define WIDTH 128

3
Marlin/src/lcd/dogm/u8g_dev_st7565_64128n_HAL.cpp

@ -57,7 +57,10 @@
#if ENABLED(DOGLCD) #if ENABLED(DOGLCD)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
#include <U8glib.h> #include <U8glib.h>
#pragma GCC diagnostic pop
#include "HAL_LCD_com_defines.h" #include "HAL_LCD_com_defines.h"

3
Marlin/src/lcd/dogm/u8g_dev_st7920_128x64_HAL.cpp

@ -57,7 +57,10 @@
#if ENABLED(DOGLCD) #if ENABLED(DOGLCD)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
#include <U8glib.h> #include <U8glib.h>
#pragma GCC diagnostic pop
#include "HAL_LCD_com_defines.h" #include "HAL_LCD_com_defines.h"

3
Marlin/src/lcd/dogm/u8g_dev_uc1701_mini12864_HAL.cpp

@ -61,7 +61,10 @@
#if ENABLED(DOGLCD) #if ENABLED(DOGLCD)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
#include <U8glib.h> #include <U8glib.h>
#pragma GCC diagnostic pop
#include "HAL_LCD_com_defines.h" #include "HAL_LCD_com_defines.h"

3
Marlin/src/lcd/dogm/ultralcd_st7920_u8glib_rrd_AVR.cpp

@ -42,7 +42,10 @@
#define LCD_PIXEL_WIDTH 128 #define LCD_PIXEL_WIDTH 128
#define LCD_PIXEL_HEIGHT 64 #define LCD_PIXEL_HEIGHT 64
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
#include <U8glib.h> #include <U8glib.h>
#pragma GCC diagnostic pop
//set optimization so ARDUINO optimizes this file //set optimization so ARDUINO optimizes this file
#pragma GCC optimize (3) #pragma GCC optimize (3)

3
Marlin/src/lcd/lcdprint_u8g.cpp

@ -11,7 +11,10 @@
#if ENABLED(DOGLCD) #if ENABLED(DOGLCD)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
#include <U8glib.h> #include <U8glib.h>
#pragma GCC diagnostic pop
extern U8GLIB *pu8g; extern U8GLIB *pu8g;
#define _lcd_write(a) pu8g->print(a) #define _lcd_write(a) pu8g->print(a)
#define _lcd_setcursor(col, row) pu8g->setPrintPos((col), (row)); #define _lcd_setcursor(col, row) pu8g->setPrintPos((col), (row));

4
Marlin/src/lcd/ultralcd.cpp

@ -103,9 +103,7 @@ uint8_t lcd_status_update_delay = 1, // First update one loop delayed
#if ENABLED(DOGLCD) #if ENABLED(DOGLCD)
#include "ultralcd_impl_DOGM.h" #include "ultralcd_impl_DOGM.h"
#include <U8glib.h> bool drawing_screen, first_page; // = false
bool drawing_screen, // = false
first_page;
#else #else
#include "ultralcd_impl_HD44780.h" #include "ultralcd_impl_HD44780.h"
constexpr bool first_page = true; constexpr bool first_page = true;

4
Marlin/src/lcd/ultralcd_impl_DOGM.h

@ -58,7 +58,11 @@
#include "../libs/duration_t.h" #include "../libs/duration_t.h"
#endif #endif
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
#include <U8glib.h> #include <U8glib.h>
#pragma GCC diagnostic pop
#include "fontutils.h" #include "fontutils.h"
#include "u8g_fontutf8.h" #include "u8g_fontutf8.h"

Loading…
Cancel
Save