Skip to content

[BUG] Building with GCC14 and C++23 causes 'volatile-qualified left operand' warnings #27767

@bmourit

Description

@bmourit

Did you test the latest bugfix-2.1.x code?

Yes, and the problem still exists.

Bug Description

I have a patch to fix the warnings prepared as well, so this bug report is just to track that. Fairly simple, just two places in the planner.h.cpp files.

Bug Timeline

Introduced when building with newer GCC and C++ standards

Expected behavior

No warnings, and remove the need for using -Wno-volatile for the GD32 platform.

Actual behavior

Two instances of the warning are generated:
"warning: using value of assignment with 'volatile'-qualified left operand is deprecated [-Wvolatile]"

Steps to Reproduce

Remove the flag -Wno-volatile from the gd32.ini file and build a GD32 board.

Version of Marlin Firmware

bugfix-2.1.x

Printer model

Creality Ender-3

Electronics

v4.2.2 MFL

LCD/Controller

Default

Other add-ons

No response

Bed Leveling

None

Your Slicer

None

Host Software

None

Don't forget to include

  • A ZIP file containing your Configuration.h and Configuration_adv.h.

Additional information & file uploads

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions