All of lore.kernel.org
 help / color / mirror / Atom feed
* pre-process.c:569:18: error: bad constant expression
@ 2005-12-31  7:30 Alecs King
  2005-12-31 19:31 ` Linus Torvalds
  0 siblings, 1 reply; 4+ messages in thread
From: Alecs King @ 2005-12-31  7:30 UTC (permalink / raw)
  To: linux-sparse

        int nargs = sym->arglist ? sym->arglist->count.normal : 0;
        struct arg args[nargs];

gcc went fine but sparse complaint about this.  Declaring such kind of
variable-sized arrays is allowed or not?  Seems 'nargs' cannot be
evaluated until runtime..?

-- 
Alecs King

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-12-31 21:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-31  7:30 pre-process.c:569:18: error: bad constant expression Alecs King
2005-12-31 19:31 ` Linus Torvalds
2005-12-31 19:50   ` Linus Torvalds
2005-12-31 21:19     ` Linus Torvalds

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.