aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2017-02-01 13:28:26 +0800
committerjbeich <jbeich@FreeBSD.org>2017-02-01 13:28:26 +0800
commitb633e86c477f8af7ed287f7bb27aa44bf381f24a (patch)
tree897cd06a59e7a05433f424fb7f436b54ed8459d4
parent426ab1fba122519ac35fa0df5c80094a88c2e2c7 (diff)
downloadfreebsd-ports-gnome-b633e86c477f8af7ed287f7bb27aa44bf381f24a.tar.gz
freebsd-ports-gnome-b633e86c477f8af7ed287f7bb27aa44bf381f24a.tar.zst
freebsd-ports-gnome-b633e86c477f8af7ed287f7bb27aa44bf381f24a.zip
math/newmat: unbreak with clang 4.0
newmat6.cpp:431:13: error: ordered comparison between pointer and zero ('int *' and 'int') if (indx > 0) { delete [] indx; indx = 0; } ~~~~ ^ ~ Reported by: antoine (via exp-run)
-rw-r--r--math/newmat/files/patch-newmat6.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/math/newmat/files/patch-newmat6.cpp b/math/newmat/files/patch-newmat6.cpp
new file mode 100644
index 000000000000..e5c31c9eb6d8
--- /dev/null
+++ b/math/newmat/files/patch-newmat6.cpp
@@ -0,0 +1,11 @@
+--- newmat6.cpp.orig 2006-09-09 12:51:25 UTC
++++ newmat6.cpp
+@@ -428,7 +428,7 @@ void CroutMatrix::operator=(const CroutM
+ {
+ if (&gm == this) { REPORT tag_val = -1; return; }
+ REPORT
+- if (indx > 0) { delete [] indx; indx = 0; }
++ if (indx) { delete [] indx; indx = 0; }
+ ((CroutMatrix&)gm).get_aux(*this);
+ Eq(gm);
+ }