svn commit: r475647 - head/textproc/gmetadom/files
Tobias Kortkamp
tobik at FreeBSD.org
Sun Jul 29 11:51:21 UTC 2018
Author: tobik
Date: Sun Jul 29 11:51:20 2018
New Revision: 475647
URL: https://svnweb.freebsd.org/changeset/ports/475647
Log:
textproc/gmetadom: Fix build with Clang 6
./../include/GdomeSmartDOMTraits.hh:101:25: error: non-constant-expression cannot be narrowed from type 'std::__1::char_traits<unsigned short>::int_type' (aka 'unsigned long') to 'std::__1::char_traits<unsigned short>::char_type' (aka 'unsigned short') in initializer list [-Wc++11-narrowing]
char_type __r = { __c };
^~~
http://beefy8.nyi.freebsd.org/data/head-armv6-default/p475340_s336728/logs/gmetadom-0.2.6_4.log
Added:
head/textproc/gmetadom/files/patch-src_gdome__cpp__smart_include_GdomeSmartDOMTraits.hh (contents, props changed)
Added: head/textproc/gmetadom/files/patch-src_gdome__cpp__smart_include_GdomeSmartDOMTraits.hh
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/gmetadom/files/patch-src_gdome__cpp__smart_include_GdomeSmartDOMTraits.hh Sun Jul 29 11:51:20 2018 (r475647)
@@ -0,0 +1,15 @@
+./../include/GdomeSmartDOMTraits.hh:101:25: error: non-constant-expression cannot be narrowed from type 'std::__1::char_traits<unsigned short>::int_type' (aka 'unsigned long') to 'std::__1::char_traits<unsigned short>::char_type' (aka 'unsigned short') in initializer list [-Wc++11-narrowing]
+ char_type __r = { __c };
+ ^~~
+
+--- src/gdome_cpp_smart/include/GdomeSmartDOMTraits.hh.orig 2018-07-29 11:48:09 UTC
++++ src/gdome_cpp_smart/include/GdomeSmartDOMTraits.hh
+@@ -98,7 +98,7 @@ namespace std {
+ static char_type
+ to_char_type(const int_type& __c)
+ {
+- char_type __r = { __c };
++ char_type __r = { static_cast<char_type>(__c) };
+ return __r;
+ }
+
More information about the svn-ports-head
mailing list