Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Sep 2018 09:04:29 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r479236 - head/deskutils/gsimplecal/files
Message-ID:  <201809080904.w8894TVb033525@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Sat Sep  8 09:04:29 2018
New Revision: 479236
URL: https://svnweb.freebsd.org/changeset/ports/479236

Log:
  deskutils/gsimplecal: Fix build with Clang 6
  
  MainWindow.cpp:157:33: error: C-style cast from 'nullptr_t' to 'GtkAccelFlags' is not allowed
                                  (GtkAccelFlags)NULL, closure);
                                  ^~~~~~~~~~~~~~~~~~~
  
  http://beefy12.nyi.freebsd.org/data/head-amd64-default/p479076_s338486/logs/errors/gsimplecal-2.1.log
  
  PR:		230883
  Submitted by:	tobik
  Approved by:	lme (maintainer timeout, 2 weeks)

Added:
  head/deskutils/gsimplecal/files/
  head/deskutils/gsimplecal/files/patch-src_MainWindow.cpp   (contents, props changed)

Added: head/deskutils/gsimplecal/files/patch-src_MainWindow.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/deskutils/gsimplecal/files/patch-src_MainWindow.cpp	Sat Sep  8 09:04:29 2018	(r479236)
@@ -0,0 +1,15 @@
+MainWindow.cpp:157:33: error: C-style cast from 'nullptr_t' to 'GtkAccelFlags' is not allowed
+                                (GtkAccelFlags)NULL, closure);
+                                ^~~~~~~~~~~~~~~~~~~
+
+--- src/MainWindow.cpp.orig	2018-08-25 04:31:20 UTC
++++ src/MainWindow.cpp
+@@ -154,7 +154,7 @@ MainWindow::MainWindow()
+         closure = g_cclosure_new(G_CALLBACK(keys[key].func), (gpointer)this, NULL);
+         gtk_accel_group_connect(accelerators, keys[key].key,
+                                 (GdkModifierType)keys[key].modifier,
+-                                (GtkAccelFlags)NULL, closure);
++                                (GtkAccelFlags)0, closure);
+         g_closure_unref(closure);
+     }
+ 



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