isl_polynomial.c: use flex array member to avoid array out of bounds warning
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 25 May 2011 10:58:40 +0000 (12:58 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 25 May 2011 12:09:01 +0000 (14:09 +0200)
commit2378a613b51fb03ceff28cc2a1708ea2e87d5072
treee263ebd029ce4799c30a9cf6f56fe50d6a0eb652
parentf87b09b28f9398fd91d4aa5a87925520bf4e808e
isl_polynomial.c: use flex array member to avoid array out of bounds warning

The p field in struct isl_upoly_rec is meant to be a flexible array member,
but this was only introduced in C99 and so we were using a slightly
different construct.  However, we already assume C99 (in particular,
designated initializers) in the rest of the code and recent versions
of clang complain about possible array out of bounds accesses when
we don't use a flexible array member.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_polynomial.c
isl_polynomial_private.h