diff options
Diffstat (limited to 'src/gtimer')
-rw-r--r-- | src/gtimer/gtimer_rules.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gtimer/gtimer_rules.h b/src/gtimer/gtimer_rules.h index ff966d38..f2b4304e 100644 --- a/src/gtimer/gtimer_rules.h +++ b/src/gtimer/gtimer_rules.h @@ -19,8 +19,11 @@ #if GFX_USE_GTIMER #if GFX_USE_GDISP && !GDISP_NEED_MULTITHREAD #if GFX_DISPLAY_RULE_WARNINGS - #warning "GTIMER: GDISP_NEED_MULTITHREAD has not been specified." - #warning "GTIMER: Make sure you are not performing any GDISP/GWIN drawing operations in the timer callback!" + #if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT + #warning "GTIMER: GDISP_NEED_MULTITHREAD has not been specified. Make sure you are not performing any GDISP/GWIN drawing operations in the timer callback!" + #elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO + COMPILER_WARNING("GTIMER: GDISP_NEED_MULTITHREAD has not been specified. Make sure you are not performing any GDISP/GWIN drawing operations in the timer callback!") + #endif #endif #endif #endif |