svn commit: r474166 - head/devel/vxlog/files

Tobias Kortkamp tobik at FreeBSD.org
Sun Jul 8 08:51:48 UTC 2018


Author: tobik
Date: Sun Jul  8 08:51:47 2018
New Revision: 474166
URL: https://svnweb.freebsd.org/changeset/ports/474166

Log:
  devel/vxlog: Fix build with Clang 6
  
  src/vxlog/type-to-string.h:65:37: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
      int res = snprintf(str, len, "%"PRId64, static_cast<int64_t>(value));
                                      ^
  
  http://beefy11.nyi.freebsd.org/data/head-i386-default/p473363_s335650/logs/vxlog-1.0.3_1.log

Added:
  head/devel/vxlog/files/patch-src_vxlog_type-to-string.h   (contents, props changed)

Added: head/devel/vxlog/files/patch-src_vxlog_type-to-string.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/vxlog/files/patch-src_vxlog_type-to-string.h	Sun Jul  8 08:51:47 2018	(r474166)
@@ -0,0 +1,20 @@
+--- src/vxlog/type-to-string.h.orig	2018-07-08 08:39:58 UTC
++++ src/vxlog/type-to-string.h
+@@ -62,7 +62,7 @@ class SignChecker {
+  public:
+   template<typename T>
+   static bool NumberToString(const T &value, char *str, size_t len) {
+-    int res = snprintf(str, len, "%"PRId64, static_cast<int64_t>(value));
++    int res = snprintf(str, len, "%" PRId64, static_cast<int64_t>(value));
+     if ((res < 0) || (static_cast<size_t>(res) == len)) return false;
+     return true;
+   }
+@@ -73,7 +73,7 @@ class SignChecker<false> {
+  public:
+   template<typename T>
+   static bool NumberToString(const T &value, char *str, size_t len) {
+-    int res = snprintf(str, len, "%"PRIu64, static_cast<uint64_t>(value));
++    int res = snprintf(str, len, "%" PRIu64, static_cast<uint64_t>(value));
+     if ((res < 0) || (static_cast<size_t>(res) == len)) return false;
+     return true;
+   }


More information about the svn-ports-all mailing list