Remove #pragmas that don't help c files

This commit is contained in:
Scott Lahteine 2018-05-23 23:47:16 -05:00
parent 230ae6a143
commit 5f8591528e
14 changed files with 0 additions and 42 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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)

View File

@ -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));

View File

@ -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"