aboutsummaryrefslogtreecommitdiff
path: root/textproc/gmetadom
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2018-07-29 11:51:20 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2018-07-29 11:51:20 +0000
commit9cdf03cb8e90841be2abd3785d2b29d2cd4aa164 (patch)
treefe3b5ade8712a80b54829c394a2de2be0e348c5d /textproc/gmetadom
parent62619e15a15a7a655ef031fa2d153eed640202e0 (diff)
downloadports-9cdf03cb8e90841be2abd3785d2b29d2cd4aa164.tar.gz
ports-9cdf03cb8e90841be2abd3785d2b29d2cd4aa164.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
Notes
Notes: svn path=/head/; revision=475647
Diffstat (limited to 'textproc/gmetadom')
-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;
+ }
+