diff options
Diffstat (limited to 'drivers/gdisp/SPFD54124B')
-rw-r--r-- | drivers/gdisp/SPFD54124B/gdisp_lld_SPFD54124B.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/gdisp/SPFD54124B/gdisp_lld_SPFD54124B.c b/drivers/gdisp/SPFD54124B/gdisp_lld_SPFD54124B.c index 163be520..6a3457d9 100644 --- a/drivers/gdisp/SPFD54124B/gdisp_lld_SPFD54124B.c +++ b/drivers/gdisp/SPFD54124B/gdisp_lld_SPFD54124B.c @@ -15,13 +15,14 @@ #if GFX_USE_GDISP -#if defined(GDISP_SCREEN_HEIGHT) -#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored." -#undef GDISP_SCREEN_HEIGHT -#endif -#if defined(GDISP_SCREEN_WIDTH) -#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored." -#undef GDISP_SCREEN_WIDTH +#if defined(GDISP_SCREEN_HEIGHT) || defined(GDISP_SCREEN_HEIGHT) + #if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT + #warning "GDISP: This low level driver does not support setting a screen size. It is being ignored." + #elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO + COMPILER_WARNING("GDISP: This low level driver does not support setting a screen size. It is being ignored.") + #endif + #undef GDISP_SCREEN_WIDTH + #undef GDISP_SCREEN_HEIGHT #endif #include "gdisp_lld_config.h" |