[PATCH 03/11] Marked a couple of variables 'const'.

Andrew Clayton andrew at digital-domain.net
Thu Jun 16 17:20:11 UTC 2022


On Thu, 16 Jun 2022 17:45:50 +0200
Alejandro Colomar <alx.manpages at gmail.com> wrote:

> On 6/16/22 03:00, Andrew Clayton wrote:
> > As was pointed out by the cppcheck[0] static code analysis utility we
> > can mark a couple of variables as 'const'. This acts as a hint to the
> > compiler about our intentions and the compiler will tell us when we
> > deviate from them.
> > 
> > [0]: https://cppcheck.sourceforge.io/  
> 
> Reviewed-by: Alejandro Colomar <alx.manpages at gmail.com>

Thanks!



More information about the unit mailing list