qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* ISO C90 compilation error
@ 2024-02-29  7:03 Paz Offer
  2024-02-29  7:14 ` Thomas Huth
  2024-02-29  7:59 ` Daniel P. Berrangé
  0 siblings, 2 replies; 4+ messages in thread
From: Paz Offer @ 2024-02-29  7:03 UTC (permalink / raw)
  To: qemu-devel@nongnu.org

[-- Attachment #1: Type: text/plain, Size: 608 bytes --]

Hi,

I am trying to build my code with QEMU and getting compilation error according to the ISO C90 standard:

      const size_t buf_size = 31;
      char buffer[buf_size + 1];

      error: ISO C90 forbids array ‘buffer’ whose size can’t be evaluated [-Werror=vla]

I noticed that the code builds with '-std=gnu11', which is newer then C90, so this is not clear to me why I get this error.
Where is the correct place to specify the language version for this?

I am building QEMU using the instructions on QEMU site (configure, make).

Thanks,
Paz


[-- Attachment #2: Type: text/html, Size: 4088 bytes --]

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

end of thread, other threads:[~2024-02-29  9:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-29  7:03 ISO C90 compilation error Paz Offer
2024-02-29  7:14 ` Thomas Huth
2024-02-29  7:59 ` Daniel P. Berrangé
2024-02-29  9:41   ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).