Skip to content

Commit 866e3af

Browse files
committed
Suppress warnings for unused parameters passed.
vApplicationStackOverflowHook( TaskHandle_t xTask __attribute__((unused)), portCHAR *pcTaskName __attribute__((unused)) ) add unused attributes to suppress compiler warnings.
1 parent a6a9df1 commit 866e3af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/variantHooks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ void vApplicationMallocFailedHook( void )
194194
This routine will never return.
195195
This routine is referenced in the task.c file of FreeRTOS as an extern.
196196
\*---------------------------------------------------------------------------*/
197-
void vApplicationStackOverflowHook( TaskHandle_t xTask, portCHAR *pcTaskName )
197+
void vApplicationStackOverflowHook( TaskHandle_t xTask __attribute__((unused)), portCHAR *pcTaskName __attribute__((unused)) )
198198
{
199199
#if defined(__AVR_ATmega640__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega1281__) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega2561__) // Arduino Mega with 2560
200200
DDRB |= _BV(DDB7);

0 commit comments

Comments
 (0)