Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jul 2018 08:51:48 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r474166 - head/devel/vxlog/files
Message-ID:  <201807080851.w688pmn8029856@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
+   }



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