ignored unused functions if u8g2 module is skipped anyhow

This commit is contained in:
devsaurus 2017-08-02 22:35:55 +02:00
parent 64f8ac2876
commit 4375e09c0b
1 changed files with 7 additions and 0 deletions

View File

@ -12,6 +12,13 @@
#include "spi_common.h"
#include "sdkconfig.h"
#ifndef CONFIG_LUA_MODULE_U8G2
// ignore unused functions if u8g2 module will be skipped anyhow
#pragma GCC diagnostic ignored "-Wunused-function"
#endif
typedef struct {
int font_ref;
int host_ref;