Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
'-pedantic' issues all warnings demanded by strict ISO C/C++; rejecting extensions that do not follow ISO C/C++. Without this option, certain GNU extensions and traditional C/C++ features are supported as well. With this option enabled building jsoncpp fails with the musl toolchain on x86 because of an incompatible posix_memalign declaration [1]. Without '-pedantic' there is no error anymore and jsoncpp builds fine. Add an option JSONCPP_WITH_STRICT_ISO to disable compilation with '-pedantic' with GCC. If jsoncpp is build with the JSONCPP_WITH_WARNING_AS_ERROR option '-pedantic-errors' is used instead. [1] https://gcc.gnu.org/ml/gcc-patches/2015-05/msg01425.html
- Loading branch information