Skip to content

Commit 7bcbf37

Browse files
committed
Playing again with __attribute__((unused))
Fixing compiler warnings.
1 parent a5ac49a commit 7bcbf37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/variantHooks.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ void vApplicationMallocFailedHook( void )
196196
This routine will never return.
197197
This routine is referenced in the task.c file of FreeRTOS as an extern.
198198
\*---------------------------------------------------------------------------*/
199-
void vApplicationStackOverflowHook( TaskHandle_t xTask __attribute__((unused)), portCHAR *pcTaskName __attribute__((unused)) ) __attribute__((weak));
199+
void vApplicationStackOverflowHook( TaskHandle_t xTask, portCHAR *pcTaskName ) __attribute__((weak));
200200

201-
void vApplicationStackOverflowHook( TaskHandle_t xTask, portCHAR *pcTaskName )
201+
void vApplicationStackOverflowHook( TaskHandle_t xTask __attribute__((unused)), portCHAR *pcTaskName __attribute__((unused)) )
202202
{
203203
#if defined(__AVR_ATmega640__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega1281__) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega2561__) // Arduino Mega with 2560
204204
DDRB |= _BV(DDB7);

0 commit comments

Comments
 (0)