From e13f9903850a57ed5cdf3fc330f5faf4d3096d1b Mon Sep 17 00:00:00 2001 From: RichardBarry <3073890+RichardBarry@users.noreply.github.com> Date: Thu, 18 Nov 2021 11:04:57 -0800 Subject: [PATCH] Fix keil compilation error (#418) * Fix compilation error when using the Keil tools with the Keil compiler. --- queue.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/queue.c b/queue.c index 08d3799dab..f3899aebf5 100644 --- a/queue.c +++ b/queue.c @@ -2756,11 +2756,10 @@ BaseType_t xQueueIsQueueFullFromISR( const QueueHandle_t xQueue ) const char * pcQueueName ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ { UBaseType_t ux; + QueueRegistryItem_t * pxEntryToWrite = NULL; configASSERT( xQueue ); - QueueRegistryItem_t * pxEntryToWrite = NULL; - if( pcQueueName != NULL ) { /* See if there is an empty space in the registry. A NULL name denotes