瀏覽代碼

ignored unused functions if u8g2 module is skipped anyhow

devsaurus 6 年之前
父節點
當前提交
4375e09c0b
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      components/modules/u8g2.c

+ 7 - 0
components/modules/u8g2.c

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