Fix build with clang 6, from FreeBSD

This commit is contained in:
jca 2018-04-09 08:53:22 +00:00
parent 326218f8b2
commit 0fa7842c1e
3 changed files with 30 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.31 2017/11/21 00:13:01 naddy Exp $
# $OpenBSD: Makefile,v 1.32 2018/04/09 08:53:22 jca Exp $
COMMENT = smart common input method platform
DISTNAME = scim-1.4.9
REVISION = 18
REVISION = 19
SHARED_LIBS += scim-1.0 0.0 # .10.4
SHARED_LIBS += scim-x11utils-1.0 0.0 # .10.4

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_scim_debug_h,v 1.1 2018/04/09 08:53:23 jca Exp $
Index: src/scim_debug.h
--- src/scim_debug.h.orig
+++ src/scim_debug.h
@@ -41,7 +41,7 @@ namespace scim {
* @name The mask for debug messages filtering.
* @{
*/
-#define SCIM_DEBUG_AllMask (~0) /**< Show all messages. */
+#define SCIM_DEBUG_AllMask ((uint32)~0) /**< Show all messages. */
#define SCIM_DEBUG_MainMask 1 /**< Show messages of main application. */
#define SCIM_DEBUG_ConfigMask 2 /**< Show messages of Config objects */
#define SCIM_DEBUG_IMEngineMask 4 /**< Show messages of IMEngine objects */

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_scim_pointer_h,v 1.1 2018/04/09 08:53:23 jca Exp $
Index: src/scim_pointer.h
--- src/scim_pointer.h.orig
+++ src/scim_pointer.h
@@ -84,7 +84,7 @@ class Pointer (public)
//!<
//!< <BR>Initialize a new Pointer with any dumb pointer.
- Pointer(Pointer& src) : t(0)
+ Pointer(const Pointer& src) : t(0)
{
set(src.get());
}