Suppress U8glib build warnings
This commit is contained in:
parent
bbd09a99f1
commit
c89649b46e
|
@ -62,7 +62,10 @@
|
|||
|
||||
#if ENABLED(DOGLCD)
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wuninitialized"
|
||||
#include <U8glib.h>
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
#include "../../Marlin.h"
|
||||
|
||||
|
|
|
@ -59,7 +59,10 @@
|
|||
|
||||
#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"
|
||||
|
||||
|
|
|
@ -60,7 +60,10 @@
|
|||
#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
|
||||
|
|
|
@ -81,7 +81,10 @@
|
|||
|
||||
#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
|
||||
|
|
|
@ -60,7 +60,10 @@
|
|||
#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
|
||||
|
|
|
@ -59,7 +59,10 @@
|
|||
|
||||
#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"
|
||||
|
||||
|
|
|
@ -59,7 +59,10 @@
|
|||
|
||||
#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
|
||||
|
|
|
@ -69,7 +69,10 @@
|
|||
|
||||
#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
|
||||
|
|
|
@ -57,7 +57,10 @@
|
|||
|
||||
#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"
|
||||
|
||||
|
|
|
@ -57,7 +57,10 @@
|
|||
|
||||
#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"
|
||||
|
||||
|
|
|
@ -61,7 +61,10 @@
|
|||
|
||||
#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"
|
||||
|
||||
|
|
|
@ -42,7 +42,10 @@
|
|||
#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)
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
|
||||
#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));
|
||||
|
|
|
@ -103,9 +103,7 @@ uint8_t lcd_status_update_delay = 1, // First update one loop delayed
|
|||
|
||||
#if ENABLED(DOGLCD)
|
||||
#include "ultralcd_impl_DOGM.h"
|
||||
#include <U8glib.h>
|
||||
bool drawing_screen, // = false
|
||||
first_page;
|
||||
bool drawing_screen, first_page; // = false
|
||||
#else
|
||||
#include "ultralcd_impl_HD44780.h"
|
||||
constexpr bool first_page = true;
|
||||
|
|
|
@ -58,7 +58,11 @@
|
|||
#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…
Reference in a new issue