On 2014-02-14 15:21, Gedare Bloom wrote:
>>Does it make sense to add noreturn attributes to the initialization
>>call path starting with boot_card through
>>rtems_initialize_start_multitasking()?
>
>
>Its already there:
>
>http://git.rtems.org/rtems/commit/?id=48bff53b3dec885085b87db413329830110c9bb0
>
Ah, it is OK to only put it at the function declaration? Does it hurt
to replicate the noreturn statement in the function definition? I
think it can be more obvious to someone who reads the code.
The only place it matters is the function declaration. This attribute tells
the compiler: hey look, if you call this function, then it will not return so
don't care about what comes next.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.hu...@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
_______________________________________________
rtems-devel mailing list
rtems-devel@rtems.org
http://www.rtems.org/mailman/listinfo/rtems-devel