rapidjson/fix_compilation_sle11sp4.patch
Dirk Mueller 1027e892c0 Accepting request 434124 from home:adamm:branches:devel:libraries:c_c++
- Added BuildRoot so we can actually build for SLE11

- New upstream version 1.1.0
  * Added JSON Pointer
  * Added JSON Schema
  * Added relaxed JSON syntax (comment, trailing comma,
    NaN/Infinity)
  * Iterating array/object with C++11 Range-based for loop
  * Reduce memory overhead of each Value from 24 bytes to 16 bytes
    in x86-64 architecture.
  * full changeset at
    https://github.com/miloyip/rapidjson/releases/tag/v1.1.0
- remove_arch_specific_flags.patch: remove architecture specific
  compiler flags.
- merge doc into devel package, it only adds about 20kB

OBS-URL: https://build.opensuse.org/request/show/434124
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/rapidjson?expand=0&rev=2
2016-10-11 06:28:45 +00:00

21 lines
903 B
Diff

Author: Adam Majer <adam.majer@suse.de>
Summary: Fix compilation with older GCC compiler
PR: https://github.com/miloyip/rapidjson/pull/755
include/rapidjson/reader.h:578: error: suggest a space before ';' or explicit braces around empty body in 'while' statement
: warnings being treated as errors
Index: rapidjson-1.1.0/include/rapidjson/reader.h
===================================================================
--- rapidjson-1.1.0.orig/include/rapidjson/reader.h
+++ rapidjson-1.1.0/include/rapidjson/reader.h
@@ -575,7 +575,7 @@ private:
}
}
else if (RAPIDJSON_LIKELY(Consume(is, '/')))
- while (is.Peek() != '\0' && is.Take() != '\n');
+ while (is.Peek() != '\0' && is.Take() != '\n') {}
else
RAPIDJSON_PARSE_ERROR(kParseErrorUnspecificSyntaxError, is.Tell());