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 error/warn #27365

Merged
merged 2 commits into from
Aug 24, 2024

Conversation

marbocub
Copy link
Contributor

@marbocub marbocub commented Aug 23, 2024

Description

There is a compile error in ft_motion.cpp by using arm-none-eabi-g++ of PlatformIO Core 6.1.15 on Windows 11. The error message is:

Marlin\src\module\ft_motion.cpp:98:3: error: braces around scalar initializer for type 'uint32_t {aka long unsigned int}'

The error occurs at scalar initializer { 0 }. I think braced scalar initializers are valid. However, the g++ reported an error. Maybe other versions of g++ may warn.

Other scalar initializers in ft_motion.cpp are not braced. I think it is good to unify by using the same syntax. This PR unbrace two scalar initializers.

note:

I found @yunline also commented on the same error below. But suggested code was not included in the merge. This PR and @yunline's code are the same.

Requirements

Benefits

Configurations

Related Issues

@thinkyhead thinkyhead merged commit 02ed020 into MarlinFirmware:bugfix-2.1.x Aug 24, 2024
63 checks passed
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