]> www.infradead.org Git - mtd-utils.git/commit
mtd-tests: io_paral: build error, "variable length strings"
authorBrian Norris <computersforpeace@gmail.com>
Mon, 27 Jun 2011 18:27:19 +0000 (11:27 -0700)
committerArtem Bityutskiy <dedekind1@gmail.com>
Wed, 29 Jun 2011 05:42:38 +0000 (08:42 +0300)
commit6977ec0308678514ea4450e25e9d443a787da12e
tree9a9f136a8fd3b72cd6fe3b21d4ca4aebb0ee5704
parent59423eba6af3dbac53a1687e9f3cb31cfaad0680
mtd-tests: io_paral: build error, "variable length strings"

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

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <dedekind1@gmail.com>
tests/ubi-tests/io_paral.c