Re: ISO C90 compilation error

2024-02-29 Thread Philippe Mathieu-Daudé
On 29/2/24 08:59, Daniel P. Berrangé wrote: On Thu, Feb 29, 2024 at 07:03:35AM +, Paz Offer wrote: 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: I

Re: ISO C90 compilation error

2024-02-29 Thread Daniel P . Berrangé
On Thu, Feb 29, 2024 at 07:03:35AM +, Paz Offer wrote: > 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’

Re: ISO C90 compilation error

2024-02-28 Thread Thomas Huth
On 29/02/2024 08.03, Paz Offer wrote: 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 [-

ISO C90 compilation error

2024-02-28 Thread Paz Offer
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