Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Aug 2020 09:37:47 +0000 (UTC)
From:      Niclas Zeising <zeising@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r545754 - head/devel/json-glib/files
Message-ID:  <202008220937.07M9blRj015822@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zeising
Date: Sat Aug 22 09:37:46 2020
New Revision: 545754
URL: https://svnweb.freebsd.org/changeset/ports/545754

Log:
  devel/json-glib: Fix build with llvm 11
  
  Fix the build of devel/json-glib with llvm 11.
  llvm 11 introduced a new warning relating to how to cast between void * and
  enums, which json-glib are stumbling over.
  
  PR:		248736
  Submitted by:	dim
  MFH:		2020Q3

Added:
  head/devel/json-glib/files/
  head/devel/json-glib/files/patch-json-glib_json-scanner.c   (contents, props changed)

Added: head/devel/json-glib/files/patch-json-glib_json-scanner.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/json-glib/files/patch-json-glib_json-scanner.c	Sat Aug 22 09:37:46 2020	(r545754)
@@ -0,0 +1,11 @@
+--- json-glib/json-scanner.c.orig	2020-08-18 18:22:53 UTC
++++ json-glib/json-scanner.c
+@@ -925,7 +925,7 @@ json_scanner_get_token_i (JsonScanner	*scanner,
+       
+     case G_TOKEN_SYMBOL:
+       if (scanner->config->symbol_2_token)
+-	*token_p = (GTokenType) value_p->v_symbol;
++	*token_p = GPOINTER_TO_INT (value_p->v_symbol);
+       break;
+       
+     case G_TOKEN_BINARY:



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