Browse Source

Remove #pragmas that don't help c files

pull/1/head
Scott Lahteine 7 years ago
parent
commit
5f8591528e
  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. 3
      Marlin/src/lcd/ultralcd_impl_DOGM.h

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

3
Marlin/src/lcd/lcdprint_u8g.cpp

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

3
Marlin/src/lcd/ultralcd_impl_DOGM.h

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

Loading…
Cancel
Save