Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

Version 9.0.0.rc2, queue.c build defect

Posted by jkovacic on March 30, 2016

I've just tried to compile a very simple GCC/ARM-based project with FreeRTOS v9.0.0rc2. Compilation failed with the following output:

arm-none-eabi-gcc -c -mcpu=arm926ej-s -Wall -Wextra -Werror -IFreeRTOS/Source/include/ -IDemo/ -IFreeRTOS/Source/portable/GCC/ARM926EJ-S/ FreeRTOS/Source/queue.c -o obj/queue.o FreeRTOS/Source/queue.c:472:13: error: 'prvInitialiseMutex' defined but not used [-Werror=unused-function] static void prvInitialiseMutex( Queue_t *pxNewQueue ) ^ cc1: all warnings being treated as errors

(yes, the compiler is configured to treat all warnings as errors). The reason is obvious: my project is very simple and does not use mutexes at all, hence the function "prvInitialiseMutex", declared and defined in queue.c, is never called. BTW, this functiuon first appeared in this version.

I've fixed this issue by simply enclosing the declaration and definition of this function with: if ( configUSE_MUTEXES == 1 )

By doing that, my demo does build and works as expected.

I have committed this "workaround" into a side branch of my demo project, feel free to take a look at it and compare my queue.c with the original one. If you need further information, you may find my contact details in my GitHub profile.

Looking forward to hear about the official solution of this issue.


Version 9.0.0.rc2, queue.c build defect

Posted by rtel on March 30, 2016

Good feedback, thanks. Our testing tends to use comprehensive configurations so warnings generated by simpler configurations can be missed. It is always the aim to have no warnings.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists