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) #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"

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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