From: Noah Watkins Date: Sun, 29 Dec 2013 19:44:57 +0000 (-0800) Subject: test: fix VLA of non-POD type X-Git-Tag: v0.75~20^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a48d0386895002e545e1e357da482af263a3113b;p=ceph.git test: fix VLA of non-POD type Variable length array of non-POD type is not supported by clang. Signed-off-by: Noah Watkins --- diff --git a/src/test/cls_statelog/test_cls_statelog.cc b/src/test/cls_statelog/test_cls_statelog.cc index a1b4cc34efcb..accab956c190 100644 --- a/src/test/cls_statelog/test_cls_statelog.cc +++ b/src/test/cls_statelog/test_cls_statelog.cc @@ -113,7 +113,7 @@ TEST(cls_rgw, test_statelog_basic) int id = 0; string client_id[] = { "client-1", "client-2" }; - int num_ops = 10; + const int num_ops = 10; string op_ids[num_ops]; librados::ObjectWriteOperation *op = new_op();