Re: [ovs-dev] [PATCH] test-classifier: add ovs_assert to prevent warning

2014-06-24 Thread Daniele Di Proietto
On Jun 24, 2014, at 1:23 PM, Ben Pfaff wrote: > On Mon, Jun 23, 2014 at 10:13:41AM -0700, Daniele Di Proietto wrote: >> GCC 4.9.0 triggers a warning (array-bounds) while compiling test-classifier.c >> This commit introduces an assertion that suppresses the warning. >> >> Signed-off-by: Daniele

Re: [ovs-dev] [PATCH] test-classifier: add ovs_assert to prevent warning

2014-06-24 Thread Ben Pfaff
On Mon, Jun 23, 2014 at 10:13:41AM -0700, Daniele Di Proietto wrote: > GCC 4.9.0 triggers a warning (array-bounds) while compiling test-classifier.c > This commit introduces an assertion that suppresses the warning. > > Signed-off-by: Daniele Di Proietto > --- > While I feel that this is a GCC pr

[ovs-dev] [PATCH] test-classifier: add ovs_assert to prevent warning

2014-06-23 Thread Daniele Di Proietto
GCC 4.9.0 triggers a warning (array-bounds) while compiling test-classifier.c This commit introduces an assertion that suppresses the warning. Signed-off-by: Daniele Di Proietto --- While I feel that this is a GCC problem, this simple (IMHO harmful) assertion fixes the issue. What do you guys thi