#1842 closed defect (fixed)

Static assertions

Reported by: Sebastian Huber Owned by: Joel Sherrill
Priority: normal Milestone: 4.11
Component: score Version: 4.11
Severity: normal Keywords:
Cc: gedare@… Blocked By:


I want to introduce static assertions in RTEMS. Please have a look at the attached patch.

It can detect things like this (msgmp.c):


sizeof(Message_queue_MP_Packet) <= MP_PACKET_MINIMUM_PACKET_SIZE,


msgmp.c:33:1: error: size of array 'static_assertion_Message_queue_MP_Packet_is_too_big' is negative

Attachments (1)

static-assert.patch (418 bytes) - added by Sebastian Huber on Jul 19, 2011 at 10:51:10 AM.

Download all attachments as: .zip

Change History (4)

Changed on Jul 19, 2011 at 10:51:10 AM by Sebastian Huber

Attachment: static-assert.patch added


comment:1 Changed on Jul 19, 2011 at 12:18:08 PM by Gedare Bloom

Cc: giddyup44@… added

comment:3 Changed on Nov 24, 2014 at 6:58:28 PM by Gedare Bloom

Version: HEAD4.11

Replace Version=HEAD with Version=4.11 for the tickets with Milestone >= 4.11

Note: See TracTickets for help on using tickets.