:~/prjs/rapidjson-1.1.0/build$ sudo make install
[sudo] password for george:
[ 3%] Built target doc
[ 9%] Built target condense
[ 16%] Built target jsonx
[ 22%] Built target pretty
[ 29%] Built target messagereader
[ 35%] Built target simpledom
[ 41%] Built target capitalize
[ 48%] Built target parsebyparts
[ 54%] Built target simplewriter
[ 61%] Built target tutorial
[ 67%] Built target prettyauto
[ 70%] Building CXX object example/CMakeFiles/schemavalidator.dir/schemavalidator/schemavalidator.cpp.o
In file included from /home/george/prjs/rapidjson-1.1.0/include/rapidjson/schema.h:35:0,
from /home/george/prjs/rapidjson-1.1.0/example/schemavalidator/schemavalidator.cpp:7:
/home/george/prjs/rapidjson-1.1.0/include/rapidjson/internal/regex.h: In member function 'void rapidjson::internal::GenericRegex<Encoding, Allocator>::Parse(rapidjson::internal::GenericRegex<Encoding, Allocator>::DecodedStream<InputStream>&) [with InputStream = rapidjson::GenericStringStream<rapidjson::UTF8<> >; Encoding = rapidjson::UTF8<>; Allocator = rapidjson::CrtAllocator]':
/home/george/prjs/rapidjson-1.1.0/include/rapidjson/internal/regex.h:301:21: error: this statement may fall through [-Werror=implicit-fallthrough=]
if (!CharacterEscape(ds, &codepoint))
^~
/home/george/prjs/rapidjson-1.1.0/include/rapidjson/internal/regex.h:305:17: note: here
default: // Pattern character
^~~~~~~
/home/george/prjs/rapidjson-1.1.0/include/rapidjson/internal/regex.h: In member function 'bool rapidjson::internal::GenericRegex<Encoding, Allocator>::ParseRange(rapidjson::internal::GenericRegex<Encoding, Allocator>::DecodedStream<InputStream>&, rapidjson::SizeType*) [with InputStream = rapidjson::GenericStringStream<rapidjson::UTF8<> >; Encoding = rapidjson::UTF8<>; Allocator = rapidjson::CrtAllocator]':
/home/george/prjs/rapidjson-1.1.0/include/rapidjson/internal/regex.h:542:21: error: this statement may fall through [-Werror=implicit-fallthrough=]
if (codepoint == '-') {
^~
/home/george/prjs/rapidjson-1.1.0/include/rapidjson/internal/regex.h:548:17: note: here
case 0:
^~~~
/home/george/prjs/rapidjson-1.1.0/include/rapidjson/internal/regex.h:531:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
if (ds.Peek() == 'b') {
^~
/home/george/prjs/rapidjson-1.1.0/include/rapidjson/internal/regex.h:539:13: note: here
default:
^~~~~~~
cc1plus: all warnings being treated as errors
example/CMakeFiles/schemavalidator.dir/build.make:62: recipe for target 'example/CMakeFiles/schemavalidator.dir/schemavalidator/schemavalidator.cpp.o' failed
make[2]: *** [example/CMakeFiles/schemavalidator.dir/schemavalidator/schemavalidator.cpp.o] Error 1
CMakeFiles/Makefile2:1482: recipe for target 'example/CMakeFiles/schemavalidator.dir/all' failed
make[1]: *** [example/CMakeFiles/schemavalidator.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2