Date: Sun, 29 Jul 2018 11:51:20 +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: r475647 - head/textproc/gmetadom/files Message-ID: <201807291151.w6TBpKQx006419@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; + } +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807291151.w6TBpKQx006419>