Smatch (Semantic Matching Tool) development
 help / color / mirror / Atom feed
From: Dan Carpenter <error27@gmail.com>
To: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Cc: smatch@vger.kernel.org
Subject: Re: Build problem smatch 1.75
Date: Tue, 5 May 2026 13:41:02 +0300	[thread overview]
Message-ID: <afnJPh_95KcWrnpx@stanley.mountain> (raw)
In-Reply-To: <4df6be81-f148-48a3-9169-297f5e0a20b9@oracle.com>

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


  reply	other threads:[~2026-05-05 10:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-04  7:55 Build problem smatch 1.75 Harshit Mogalapalli
2026-05-04  8:20 ` Dan Carpenter
2026-05-04 10:47   ` Harshit Mogalapalli
2026-05-05 10:41     ` Dan Carpenter [this message]
2026-05-05 14:58       ` Harshit Mogalapalli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=afnJPh_95KcWrnpx@stanley.mountain \
    --to=error27@gmail.com \
    --cc=harshit.m.mogalapalli@oracle.com \
    --cc=smatch@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox