-
Notifications
You must be signed in to change notification settings - Fork 93
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
WIP: Fixing the compiler warnings for GCC 11 #647
Conversation
Any reason why NL_ISO_CPP0X_AVAILABLE didn't get defined? |
|
Maybe that CPP0X check needs |
Additional comment: The commit with change from auto_ptr to unique_ptr needs further amendment or an additional commit: the test suite uses auto_ptr and it is not a simple replace task there. |
The problem for auto_ptr replacement is the test suite library, cpptest which seems to still be stuck with auto_ptr:
And this becomes an error when I replace all occurances of auto_ptr in ryzom's source with unique_ptr as cpptest uses auto_ptr:
Quelle : cpptest-1.1.2-18.fc34.src.rpm Not sure how to solve this issue. Ultimately it looks to me like cpptest is somewhat unmaintained and should be replaced by something else (that'd be outside of the scope of this patch). Alternatively I can - for now - insert pragmas into the unit test files which silences this GCC warning about auto_ptr usage during their compilation. Thoughts? |
Tbh, I haven't compiled the tests in years.
|
can we drop support for GCC 4.x or GCC < 4.8.1? Then we will have complete C++11 support without tedious checks. GCC 4.8.1 was released in 2014, thus 7 years ago. |
…Use std::unique_ptr for GCC > 4.4
…_ptr. The cpptest library seems stuck in old code and there is no easy way to change this other than replacing cpptest with something not using deprecated code
e3c2507
to
04d628e
Compare
Still need VS2008 support until we confirm the plugins work correctly on the latest 3ds Max. |
Can you reapply this on the latest core4 branch? The auto_ptr should already be fixed now. |
Yes, I will. This issue is not forgotten :) |
I'll close this since it no longer applies to the current version. |
This PR is supposed to be amended by further commits targeting further warnings as by issue #646
Fix: [linux] Silence warnings about deprecated use of std::auto_ptr. Use std::unique_ptr for GCC > 4.4