[PATCH 02/10] mtd-tests: io_paral: build error, "variable length strings"

Josh Boyer jwboyer at gmail.com
Wed Jun 29 09:22:26 EDT 2011


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.
>
> 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?

josh



More information about the linux-mtd mailing list