diff options
Diffstat (limited to 'src/gos/gos_cmsis.c')
-rw-r--r-- | src/gos/gos_cmsis.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gos/gos_cmsis.c b/src/gos/gos_cmsis.c index 5bb10dbd..2798dcba 100644 --- a/src/gos/gos_cmsis.c +++ b/src/gos/gos_cmsis.c @@ -19,7 +19,11 @@ void _gosInit(void) if (!osKernelRunning()) osKernelStart(); #elif !GFX_OS_INIT_NO_WARNING - #warning "GOS: Operating System initialization has been turned off. Make sure you call osKernelInitialize() and osKernelStart() before gfxInit() in your application!" + #if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT + #warning "GOS: Operating System initialization has been turned off. Make sure you call osKernelInitialize() and osKernelStart() before gfxInit() in your application!" + #elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO + COMPILER_WARNING("GOS: Operating System initialization has been turned off. Make sure you call osKernelInitialize() and osKernelStart() before gfxInit() in your application!") + #endif #endif // Set up the heap allocator |