Bug 184871

Summary: x11/3ddesktop: Fix build with clang
Product: Ports & Packages Reporter: tkato432
Component: Individual Port(s)Assignee: Pawel Pekala <pawel>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description tkato432 2013-12-16 18:10:19 UTC
- Fix build with clang

New file:
files/patch-config.cpp
Comment 1 Pawel Pekala freebsd_committer freebsd_triage 2013-12-20 18:06:12 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pawel

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-12-20 18:10:36 UTC
Author: pawel
Date: Fri Dec 20 18:10:28 2013
New Revision: 337055
URL: http://svnweb.freebsd.org/changeset/ports/337055

Log:
  Fix build with clang
  
  PR:		ports/184871
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>

Added:
  head/x11/3ddesktop/files/patch-config.cpp   (contents, props changed)
Modified:
  head/x11/3ddesktop/files/patch-event.hpp   (contents, props changed)

Added: head/x11/3ddesktop/files/patch-config.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/3ddesktop/files/patch-config.cpp	Fri Dec 20 18:10:28 2013	(r337055)
@@ -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));

Modified: head/x11/3ddesktop/files/patch-event.hpp
==============================================================================
--- head/x11/3ddesktop/files/patch-event.hpp	Fri Dec 20 18:07:52 2013	(r337054)
+++ head/x11/3ddesktop/files/patch-event.hpp	Fri Dec 20 18:10:28 2013	(r337055)
@@ -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);
          }
      }
  
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Pawel Pekala freebsd_committer freebsd_triage 2013-12-20 18:10:41 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-12-20 18:27:20 UTC
Author: mat
Date: Fri Dec 20 18:27:13 2013
New Revision: 337063
URL: http://svnweb.freebsd.org/changeset/ports/337063

Log:
  MFH: r337055
  
  Fix build with clang
  
  PR:		ports/184871
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
  Approved by:	portmgr (implicit)

Added:
  branches/2014Q1/x11/3ddesktop/files/patch-config.cpp
     - copied unchanged from r337055, head/x11/3ddesktop/files/patch-config.cpp
Modified:
  branches/2014Q1/x11/3ddesktop/files/patch-event.hpp   (contents, props changed)
Directory Properties:
  branches/2014Q1/   (props changed)

Copied: branches/2014Q1/x11/3ddesktop/files/patch-config.cpp (from r337055, head/x11/3ddesktop/files/patch-config.cpp)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/2014Q1/x11/3ddesktop/files/patch-config.cpp	Fri Dec 20 18:27:13 2013	(r337063, copy of r337055, head/x11/3ddesktop/files/patch-config.cpp)
@@ -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));

Modified: branches/2014Q1/x11/3ddesktop/files/patch-event.hpp
==============================================================================
--- branches/2014Q1/x11/3ddesktop/files/patch-event.hpp	Fri Dec 20 18:24:48 2013	(r337062)
+++ branches/2014Q1/x11/3ddesktop/files/patch-event.hpp	Fri Dec 20 18:27:13 2013	(r337063)
@@ -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);
          }
      }
  
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"