Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Feb 2015 00:55:57 +0000 (UTC)
From:      Mikhail Teterin <mi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r379859 - head/textproc/wordnet/files
Message-ID:  <201502250055.t1P0tv6r047089@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mi
Date: Wed Feb 25 00:55:56 2015
New Revision: 379859
URL: https://svnweb.freebsd.org/changeset/ports/379859
QAT: https://qat.redports.org/buildarchive/r379859/

Log:
  Rephrase how we do the const-dropping casting so as to pass the muster
  of clang-3.6.0
  
  PR:		198009
  Submitted by:	dim

Modified:
  head/textproc/wordnet/files/patch-lib__wnutil.c

Modified: head/textproc/wordnet/files/patch-lib__wnutil.c
==============================================================================
--- head/textproc/wordnet/files/patch-lib__wnutil.c	Wed Feb 25 00:30:55 2015	(r379858)
+++ head/textproc/wordnet/files/patch-lib__wnutil.c	Wed Feb 25 00:55:56 2015	(r379859)
@@ -83,7 +83,7 @@
 +	if (*ptype == '\0' &&
 +	    (*pstr == '\n' || *pstr == ' ' || *pstr == '\0')) {
 +	    if (end)
-+		*(const void **)end = pstr;
++		*end = __DECONST(char *, pstr);
  	    return(i);
 +	}
      }



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