From 240744f9c919683156f9efe94fe47d741807e16f Mon Sep 17 00:00:00 2001 From: Themba Dube Date: Sat, 16 Mar 2019 08:58:52 -0400 Subject: [PATCH] Silence another pedantic warning --- lv_objx/lv_objx_templ.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lv_objx/lv_objx_templ.c b/lv_objx/lv_objx_templ.c index a9fa5b7b4..18864a1d4 100644 --- a/lv_objx/lv_objx_templ.c +++ b/lv_objx/lv_objx_templ.c @@ -8,13 +8,16 @@ * templ -> object short name with lower case(e.g. btn, label etc) * TEMPL -> object short name with upper case (e.g. BTN, LABEL etc.) * + * You can remove the defined() clause from the #if statement below. This exists because LV_USE_TEMPL + * is not in lv_conf.h or lv_conf_templ.h by default. */ /********************* * INCLUDES *********************/ //#include "lv_templ.h" /*TODO uncomment this*/ -#if LV_USE_TEMPL != 0 + +#if defined(LV_USE_TEMPL) && LV_USE_TEMPL != 0 /********************* * DEFINES