svn commit: r337055 - head/x11/3ddesktop/files

Pawel Pekala pawel at FreeBSD.org
Fri Dec 20 18:10:29 UTC 2013


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 at 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);
          }
      }
  


More information about the svn-ports-head mailing list