Skip to content
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 compilation for clang #785

Closed
wants to merge 1 commit into from
Closed

fix compilation for clang #785

wants to merge 1 commit into from

Conversation

jjdredd
Copy link
Contributor

@jjdredd jjdredd commented May 5, 2021

кланголожцы возрадуйтесь

This was linked to issues May 5, 2021
@Xottab-DUTY Xottab-DUTY added this to the Linux port milestone May 5, 2021
@Xottab-DUTY Xottab-DUTY added Build issue The issue in the build-time. Portability Linux labels May 5, 2021
Copy link
Member

@Xottab-DUTY Xottab-DUTY left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were multiple attempts to fix that before. (see linked pull requests to issue #289)
3 of 5 pull requests were removing problem_solver_inline.h include from problem_solver.h and reincluding it into files in xrGame. It is wrong way to fix the issue.

Correct way to fix the issue is to move xrAICore dependencies from xrGame to xrAICore.

@@ -149,4 +149,3 @@ class CProblemSolver
virtual void clear();
};

#include "xrAICore/Components/problem_solver_inline.h"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not going to be allowed in any way.

@@ -403,7 +403,7 @@ void InventoryUtilities::UpdateWeight(CUIStatic& wnd, CInventoryOwner* pInvOwner
string32 prefix;

if (withPrefix)
xr_sprintf(prefix, "%%c[default]%s ", StringTable().translate("ui_inv_weight"));
xr_sprintf(prefix, "%%c[default]%s ", StringTable().translate("ui_inv_weight").c_str());
Copy link
Member

@Xottab-DUTY Xottab-DUTY May 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is better to move it into another pull request, so we can merge this piece of code already.

@@ -221,7 +221,7 @@ void CUIRankingWnd::add_achievement(CUIXml& xml, shared_str const& achiev_id)
{
if (!pSettings->section_exist(achiev_id))
{
Msg("~ Achievement section [%s] does not exist!", achiev_id);
Msg("~ Achievement section [%s] does not exist!", achiev_id.c_str());
Copy link
Member

@Xottab-DUTY Xottab-DUTY May 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is better to move it into another pull request, so we can merge this piece of code already.

@jjdredd jjdredd closed this May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build issue The issue in the build-time. Linux Portability
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Broken compilation with LLVM 8.0.1 [Linux] Clang build issues
2 participants