[PATCH 02/10] mtd-tests: io_paral: build error, "variable length strings"
computersforpeace at gmail.com
Wed Jun 29 11:45:10 EDT 2011
On Wed, Jun 29, 2011 at 6:22 AM, Josh Boyer <jwboyer at gmail.com> wrote:
> On Mon, Jun 27, 2011 at 2:27 PM, Brian Norris
> <computersforpeace at gmail.com> wrote:
>> Some compilers will complain about use of strlen() within a static array
>> size declaration. For this type of string, "sizeof() - 1" is equivalent
>> and prevents the build error.
>> io_paral.c:48:13: error: variably modified 'vol_nodes' at file scope
> Out of curiosity, which compiler does that? Newer versions of GCC, or
> some other compiler altogether?
I think it's just newer versions of GCC. I found the error on MIPS GCC
on versions 4.5.2 and 4.5.3. It didn't occur on MIPS or x86_64 for
More information about the linux-mtd