Re: git: 56f3f2d2491e - main - libsecureboot: avoid set but not used errors
- In reply to: Jessica Clarke : "Re: git: 56f3f2d2491e - main - libsecureboot: avoid set but not used errors"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 30 Jun 2023 21:05:52 UTC
Jessica Clarke <jrtc27@freebsd.org> wrote:
> > - if (!cn.status)
> > + if (!cn.status) {
> > buf = NULL;
> > + if (err == 0) /* keep compiler happy */
> > + buf = NULL;
>
> This is nonsense code.
The error is nonsense, so yes.
I want to keep the variable, but it has no purpose except to
look at in a debugger - how do you tell the compiler that?