Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Feb 2017 05:28:26 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r432983 - head/math/newmat/files
Message-ID:  <201702010528.v115SQYf088566@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Wed Feb  1 05:28:26 2017
New Revision: 432983
URL: https://svnweb.freebsd.org/changeset/ports/432983

Log:
  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)

Added:
  head/math/newmat/files/patch-newmat6.cpp   (contents, props changed)

Added: head/math/newmat/files/patch-newmat6.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/newmat/files/patch-newmat6.cpp	Wed Feb  1 05:28:26 2017	(r432983)
@@ -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);
+ }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702010528.v115SQYf088566>