From b02b01e211c277d1a65b7ae165ed829e51ff4793 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Thu, 4 Sep 2014 18:43:58 +0000 Subject: - Fix build with clang by using std::vector instead of variable size array of non-POD type - Fix build with PLOTUTILS enabled, which was broken when built with GCC --- science/qcl/files/patch-eval.cc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 science/qcl/files/patch-eval.cc (limited to 'science/qcl/files/patch-eval.cc') diff --git a/science/qcl/files/patch-eval.cc b/science/qcl/files/patch-eval.cc new file mode 100644 index 000000000000..bd25859c7615 --- /dev/null +++ b/science/qcl/files/patch-eval.cc @@ -0,0 +1,15 @@ +--- eval.cc.orig 2014-03-27 17:24:43.000000000 +0400 ++++ eval.cc 2014-09-04 21:33:12.000000000 +0400 +@@ -474,10 +474,10 @@ + void *c; + int i; + int argc=pexpr->n(); +- tValue v[argc]; ++ std::vector v(argc); + tInt n[argc]; + tReal r[argc]; +- tComplex z[argc]; ++ std::vector z(argc); + tInt rn; + tReal rr; + TRACE(); -- cgit v1.2.3