aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authortobik <tobik@FreeBSD.org>2018-07-29 19:51:20 +0800
committertobik <tobik@FreeBSD.org>2018-07-29 19:51:20 +0800
commit37445a139d012439d83e7185b2adbb8dbfed35c3 (patch)
treefe3b5ade8712a80b54829c394a2de2be0e348c5d /textproc
parent008c8011939d6b998ec8a75868e71a425570cd54 (diff)
downloadfreebsd-ports-gnome-37445a139d012439d83e7185b2adbb8dbfed35c3.tar.gz
freebsd-ports-gnome-37445a139d012439d83e7185b2adbb8dbfed35c3.tar.zst
freebsd-ports-gnome-37445a139d012439d83e7185b2adbb8dbfed35c3.zip
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
Diffstat (limited to 'textproc')
-rw-r--r--textproc/gmetadom/files/patch-src_gdome__cpp__smart_include_GdomeSmartDOMTraits.hh15
1 files changed, 15 insertions, 0 deletions
diff --git a/textproc/gmetadom/files/patch-src_gdome__cpp__smart_include_GdomeSmartDOMTraits.hh b/textproc/gmetadom/files/patch-src_gdome__cpp__smart_include_GdomeSmartDOMTraits.hh
new file mode 100644
index 000000000000..4e051d5fed4d
--- /dev/null
+++ b/textproc/gmetadom/files/patch-src_gdome__cpp__smart_include_GdomeSmartDOMTraits.hh
@@ -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;
+ }
+