Remove #pragmas that don't help c files
This commit is contained in:
parent
230ae6a143
commit
5f8591528e
|
@ -62,10 +62,7 @@
|
||||||
|
|
||||||
#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"
|
||||||
|
|
||||||
|
|
|
@ -59,10 +59,7 @@
|
||||||
|
|
||||||
#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"
|
||||||
|
|
||||||
|
|
|
@ -60,10 +60,7 @@
|
||||||
#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
|
||||||
|
|
|
@ -81,10 +81,7 @@
|
||||||
|
|
||||||
#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
|
||||||
|
|
|
@ -60,10 +60,7 @@
|
||||||
#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
|
||||||
|
|
|
@ -59,10 +59,7 @@
|
||||||
|
|
||||||
#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"
|
||||||
|
|
||||||
|
|
|
@ -59,10 +59,7 @@
|
||||||
|
|
||||||
#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
|
||||||
|
|
|
@ -69,10 +69,7 @@
|
||||||
|
|
||||||
#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
|
||||||
|
|
|
@ -57,10 +57,7 @@
|
||||||
|
|
||||||
#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"
|
||||||
|
|
||||||
|
|
|
@ -57,10 +57,7 @@
|
||||||
|
|
||||||
#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"
|
||||||
|
|
||||||
|
|
|
@ -61,10 +61,7 @@
|
||||||
|
|
||||||
#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"
|
||||||
|
|
||||||
|
|
|
@ -42,10 +42,7 @@
|
||||||
#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)
|
||||||
|
|
|
@ -11,10 +11,7 @@
|
||||||
|
|
||||||
#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));
|
||||||
|
|
|
@ -58,10 +58,7 @@
|
||||||
#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…
Reference in a new issue