-
Notifications
You must be signed in to change notification settings - Fork 56
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
fix build for gcc 14 #3391
base: nat/poc_cpp23
Are you sure you want to change the base?
fix build for gcc 14 #3391
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll run the builds and we'll see.
@@ -1979,7 +1979,7 @@ void LLPanelRegionTerrainInfo::initMaterialCtrl(LLTextureCtrl*& ctrl, const std: | |||
if (!ctrl) return; | |||
|
|||
// consume cancel events, otherwise they will trigger commit callbacks | |||
ctrl->setOnCancelCallback([](LLUICtrl* ctrl, const LLSD& param) {}); | |||
ctrl->setOnCancelCallback([this](LLUICtrl* ctrl, const LLSD& param) {}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change makes me raise my eyebrows. I can't think of a reason why a lambda with a literally empty body would need any bindings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It makes no sense in all of the changes in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact, clang actively dislikes it:
/Users/runner/work/viewer/viewer/indra/newview/llinventorygallerymenu.cpp:329:85: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
329 | boost::function<void(std::string& slurl)> copy_slurl_to_clipboard_cb = [this](const std::string& slurl)
| ^~~~
1 error generated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gcc14 marks all changes as errors. Maybe all the errors it detects are false positives.
I was not able to build the viewer properly using gcc14 and gcc13 in my environment.
gcc 14 or 13 error list
|
Maybe we must tell gcc users to skip versions 13 and 14? We certainly can't accept changes that break clang builds. |
Skipping gcc 13 and 14 may be appropriate. |
Since there is no prospect of being able to build with gcc13 and 14, I am thinking of canceling this PR. What do you think? |
Fix build error for gcc 14
It has not yet been completely fixed.
There may be some false positives.