Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 2013 02:51:50 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/184871: x11/3ddesktop: Fix build with clang
Message-ID:  <20131217025150.506ae7d7433a8f002c8be52e@yahoo.com>
Resent-Message-ID: <201312161810.rBGIAJi9016381@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         184871
>Category:       ports
>Synopsis:       x11/3ddesktop: Fix build with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 16 18:10:19 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Fix build with clang

New file:
files/patch-config.cpp

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/x11/3ddesktop/files/patch-config.cpp x11/3ddesktop/files/patch-config.cpp
--- /usr/ports/x11/3ddesktop/files/patch-config.cpp	1970-01-01 09:00:00.000000000 +0900
+++ x11/3ddesktop/files/patch-config.cpp	2013-12-17 00:00:00.000000000 +0900
@@ -0,0 +1,13 @@
+--- config.cpp.orig
++++ config.cpp
+@@ -64,8 +64,9 @@
+ }
+ 
+ 
+-Options::Options(char *n = NULL) 
++Options::Options(char *n) 
+ {
++    n = NULL;
+ 
+     if (n)
+         strncpy(name, n, sizeof(name));
diff -urN /usr/ports/x11/3ddesktop/files/patch-event.hpp x11/3ddesktop/files/patch-event.hpp
--- /usr/ports/x11/3ddesktop/files/patch-event.hpp	2013-11-06 21:55:48.000000000 +0900
+++ x11/3ddesktop/files/patch-event.hpp	2013-12-17 00:00:00.000000000 +0900
@@ -5,7 +5,7 @@
          for (k = events.begin(); k != events.end(); ++k) {
              Event *e = *k;
 -            printf(":: Event %d  0x%x\n", e->type, (unsigned int)(e->function));
-+            printf(":: Event %d  0x%x\n", e->type, (unsigned intptr_t)(e->function));
++            printf(":: Event %d  %p\n", e->type, e->function);
          }
      }
  
>Release-Note:
>Audit-Trail:
>Unformatted:



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