blob: d8426c3224b5361aac38c26de4747a741f6cbf6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
This patch fixes the following warning, issued by GCC 4.8.1 20130909 compiler:
In member function ‘char boost::property_tree::json_parser::detail::utf8_utf8_encoding::to_internal_trivial(char) const’:
workdir/UnpackedTarball/boost/boost/property_tree/detail/json_parser/narrow_encoding.hpp:71:25: warning:
comparison is always true due to limited range of data type [-Wtype-limits]
assert(c <= 0x7f);
diff -ru boost.orig/boost/property_tree/detail/json_parser/narrow_encoding.hpp boost/boost/property_tree/detail/json_parser/narrow_encoding.hpp
--- foo/misc/boost.orig/boost/property_tree/detail/json_parser/narrow_encoding.hpp 2015-07-07 14:20:48.000000000 +0200
+++ foo/misc/boost/boost/property_tree/detail/json_parser/narrow_encoding.hpp 2015-07-19 11:55:28.268931551 +0200
@@ -68,7 +68,7 @@
}
char to_internal_trivial(char c) const {
- assert(c <= 0x7f);
+ //assert(c <= 0x7f);
return c;
}
|