[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] misra: add missing noreturn attribute for __div0()



On Tue, 12 Aug 2025, Nicola Vetrini wrote:
> On 2025-08-12 17:46, Dmytro Prokopchuk1 wrote:
> > The __div0() function never returns to its caller, causing a violation
> > of MISRA C Rule 2.1: "A project shall not contain unreachable code".
> > Add the `noreturn` attribute to fix this.
> > 
> 
> I was convinced that this was already upstream, as I made a patch a while ago,
> but evidently I forgot to send it.
> 
> > Signed-off-by: Dmytro Prokopchuk <dmytro_prokopchuk1@xxxxxxxx>
> 
> Reviewed-by: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>

Acked-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.