diff options
-rw-r--r-- | textproc/gmetadom/files/patch-src_gdome__cpp__smart_include_GdomeSmartDOMTraits.hh | 15 |
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; + } + |