Skip to content

Fix dangling pointer build warning #27869

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

Closed

Conversation

bmourit
Copy link
Contributor

@bmourit bmourit commented May 20, 2025

Description

Fixes a build warning in GCC 14/ C++23 about a possible dangling pointer

Requirements

Warning should appear when building for a GD32 MFL Board with FT_MOTION and FT_MOTION_MENU enabled on the latest bugfix-2.1.x branch.

opt_set MOTHERBOARD BOARD_CREALITY_V427_GD32_MFL
opt_enable FT_MOTION FT_MOTION_MENU FAN_SOFT_PWM CR10_STOCKDISPLAY
opt_add RET6_12864_LCD
mftest -a -n1 -y

Benefits

Builds without warnings

Configurations

N/A

Related Issues

None

@thinkyhead
Copy link
Member

How to reproduce? We might prefer another solution if we can test it ourselves.

@bmourit
Copy link
Contributor Author

bmourit commented May 20, 2025

How to reproduce? We might prefer another solution if we can test it ourselves.

Sorry about that. I've updated the requirements of GD32 MFL and FT_MOTION and FT_MOTION_MENU being enabled.

@thinkyhead thinkyhead closed this May 24, 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.

3 participants