Skip to content

Fix Quantum Painter compiliation issues with heavy optimization #24667

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

Merged
merged 2 commits into from
Dec 2, 2024

Conversation

drashna
Copy link
Member

@drashna drashna commented Dec 2, 2024

Description

As title says. When setting OPT = 3 or similar heavy optimization, errors out with -Werror=maybe-uninitialized on a number of variables. Initializing them should be harmlesss, as they're passed as pointers to other functions to be set, and fixes the errors without changing additional compiler options.

Types of Changes

  • Core
  • Bugfix

Issues Fixed or Closed by This PR

  • issues locally

Checklist

  • My code follows the code style of this project: C, Python
  • I have read the PR Checklist document and have made the appropriate changes.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

When setting `OPT = 3` or similar heavy optimization, errors out with `-Werror=maybe-uninitialized`
on a number of variables.  Initializing them should be harmless, as they're passed as pointers to
other functions to be set, and fixes the errors without changing additional compiler options.
@drashna drashna requested review from tzarc and a team December 2, 2024 03:24
@tzarc tzarc merged commit b599c78 into qmk:develop Dec 2, 2024
4 checks passed
@drashna drashna deleted the qp_pt branch December 2, 2024 18:18
alinelena pushed a commit to alinelena/qmk_firmware that referenced this pull request Feb 3, 2025
johanbast pushed a commit to johanbast/qmk_firmware that referenced this pull request Feb 28, 2025
srphcr pushed a commit to srphcr/qmk_firmware that referenced this pull request Mar 24, 2025
vinniefranco pushed a commit to Good-Great-Grand-Wonderful/qmk_firmware that referenced this pull request Mar 30, 2025
oskar-wigstrom pushed a commit to oskar-wigstrom/qmk_firmware that referenced this pull request Apr 23, 2025
minyu7374 pushed a commit to minyu7374/qmk_firmware that referenced this pull request Apr 25, 2025
MasayukiFukada pushed a commit to MasayukiFukada/qmk_firmware that referenced this pull request May 1, 2025
ChrisGVE pushed a commit to ChrisGVE/qmk_firmware that referenced this pull request May 6, 2025
ichichou pushed a commit to ichichou/qmk_firmware that referenced this pull request May 8, 2025
JoseCaliz pushed a commit to JoseCaliz/qmk_firmware that referenced this pull request Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants