Skip to content

Fix: eliminate a load of warnings about missing-field-initializers#5501

Merged
SlySven merged 1 commit intoMudlet:developmentfrom
SlySven:Fix_eliminateALoadOfWarningsAbout_missing-field-initializers
Oct 11, 2021
Merged

Fix: eliminate a load of warnings about missing-field-initializers#5501
SlySven merged 1 commit intoMudlet:developmentfrom
SlySven:Fix_eliminateALoadOfWarningsAbout_missing-field-initializers

Conversation

@SlySven
Copy link
Copy Markdown
Member

@SlySven SlySven commented Oct 9, 2021

As the header file that contains the structure: inline static const OrderedMap<QString, GameDetails> scmDefaultGames is used by so many other classes it causes nearly one hundred compile time warnings (50 each) of these:
missing initializer for member 'mudlet::GameDetails::websiteInfo' [-Wmissing-field-initializers]
missing initializer for member 'mudlet::GameDetails::icon' [-Wmissing-field-initializers]

Signed-off-by: Stephen Lyons slysven@virginmedia.com

Release post highlight

Not sure that this is something we need to mention?

As the header file that contains the structure:
`inline static const OrderedMap<QString, GameDetails> scmDefaultGames`
is used by so many other classes it causes nearly one hundred compile
time warnings (50 each) of these:
`missing initializer for member 'mudlet::GameDetails::websiteInfo'
  [-Wmissing-field-initializers]`
`missing initializer for member 'mudlet::GameDetails::icon'
  [-Wmissing-field-initializers]`

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
@SlySven SlySven requested a review from a team as a code owner October 9, 2021 22:09
@add-deployment-links
Copy link
Copy Markdown

add-deployment-links bot commented Oct 9, 2021

Hey there! Thanks for helping Mudlet improve. 🌟

Test versions

You can directly test the changes here:

No need to install anything - just unzip and run.
Let us know if it works well, and if it doesn't, please give details.

@SlySven
Copy link
Copy Markdown
Member Author

SlySven commented Oct 9, 2021

This issue was really spamming me:
Screenshot_20211009_225523

😲

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Oct 9, 2021

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Copy Markdown
Member

@vadi2 vadi2 left a comment

Choose a reason for hiding this comment

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

That is strange... where are you getting this check from? It's not documented on https://clang.llvm.org/extra/clang-tidy/checks/list.html, nor do I have it locally, nor does our CI clang-tidy know about it

@vadi2 vadi2 assigned SlySven and unassigned vadi2 Oct 10, 2021
@SlySven
Copy link
Copy Markdown
Member Author

SlySven commented Oct 11, 2021

That is strange... where are you getting this check from? It's not documented on https://clang.llvm.org/extra/clang-tidy/checks/list.html, nor do I have it locally, nor does our CI clang-tidy know about it

I am not sure - the only thing I can find that might to fit is this clang-tidy one:
image

Which seems to link to: https://clang-analyzer.llvm.org/available_checks.html#optin_checkers

@SlySven SlySven merged commit d43d384 into Mudlet:development Oct 11, 2021
@SlySven SlySven deleted the Fix_eliminateALoadOfWarningsAbout_missing-field-initializers branch October 11, 2021 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants