]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_M0_LPC1114_LPCXpresso/RTOSDemo/Source/cr_startup_lpc11.c
Ensure the LPC1114 demo still builds after updates to the Cortex-M0 port layer -...
[freertos] / FreeRTOS / Demo / CORTEX_M0_LPC1114_LPCXpresso / RTOSDemo / Source / cr_startup_lpc11.c
index 973bbc2a09c3ce743fe2390a8474bee6d72077da..ff42b820e2c00a4aaa626f0775d634f6e0941e9f 100644 (file)
@@ -357,6 +357,16 @@ volatile unsigned int stacked_psr;
        stacked_pc = ((unsigned long) hardfault_args[6]);\r
        stacked_psr = ((unsigned long) hardfault_args[7]);\r
 \r
+       /* Remove compiler warnings about variables being set but not used. */\r
+       ( void ) stacked_r0;\r
+       ( void ) stacked_r1;\r
+       ( void ) stacked_r2;\r
+       ( void ) stacked_r3;\r
+       ( void ) stacked_r12;\r
+       ( void ) stacked_lr;\r
+       ( void ) stacked_pc;\r
+       ( void ) stacked_psr;\r
+\r
        /* Inspect stacked_pc to locate the offending instruction. */\r
        for( ;; )\r
        {\r