Re: Build problem smatch 1.75

Dan Carpenter <[email protected]> Tue, 5 May 2026 13:41:02 +0300
Newsgroups org.kernel.vger.smatch
Message-ID <[email protected]>
On Mon, May 04, 2026 at 04:17:51PM +0530, Harshit Mogalapalli wrote:
> On 04/05/26 13:50, Dan Carpenter wrote:
> > On Mon, May 04, 2026 at 01:25:43PM +0530, Harshit Mogalapalli wrote:
> > > Hi Dan,
> > > 
> > > Build error:
> > > 
> > > pre-process.c: In function ‘parse_expansion’:
> > > pre-process.c:1648:16: error: variable-sized object may not be initialized
> > >   1648 |         struct arg_state args[slots] = {};
> > >        |                ^~~~~~~~~
> > 
> > What compiler are you using?  This is a bug in Sparse.  We should
> > probably fix it there.
> > 
> 

I reported this to the Sparse devs, but for now I just changed this to a
memset() to fix the build in Smatch.

regards,
dan carpenter