-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build error on Fedora 24 with gcc 6.1.1 #666
Comments
Do you override |
No. I have not done any conscious overriding at least. I can reproduce it by doing the following steps: git clone https://github.com/miloyip/rapidjson |
I have just added #667 with a proposed fix. For For Some tests exposed |
Fix warnings on GCC 6 and later (closes #666)
Thanks for the fix. But the change in readertest.cpp exposes another build problem for me. [ 68%] Building CXX object test/unittest/CMakeFiles/unittest.dir/readertest.cpp.o And I am a bit confused about that flag, since my gcc (from Fedora 24) does not seem to have any "-Wdangling-else" as seen by "gcc --help=warnings". I can also not find any reference to it in the online gcc documentation: https://gcc.gnu.org/onlinedocs/gcc-6.1.0/gcc/Option-Summary.html $ gcc --version |
Ok, it seems that the |
Ah, I suspected as much, but did not find it easily. |
I've raised the GCC version to suppress the warning in readertest.cpp to 7.x or later, see #669. |
Great! Now I was able to build without problems. |
Thanks @pah |
Built using "cmake -DRAPIDJSON_HAS_STDSTRING=ON .. && make".
System is Fedora 24
gcc is 6.1.1.
Build ends with:
/extra/ragnar/source/rapidjson-master/test/unittest/namespacetest.cpp:39:19: required from here
/extra/ragnar/source/rapidjson-master/include/rapidjson/document.h:755:66: error: throw will always call terminate() [-Werror=terminate]
RAPIDJSON_ASSERT(this != &rhs);
Full output from cmake and make attached.
cmake.txt
build.txt
The text was updated successfully, but these errors were encountered: