Skip to content

Quick fixes for warnings - #27507

Merged
thinkyhead merged 3 commits into
MarlinFirmware:bugfix-2.1.xfrom
classicrocker883:bugfix-2.1.x-October8
Nov 12, 2024
Merged

Quick fixes for warnings#27507
thinkyhead merged 3 commits into
MarlinFirmware:bugfix-2.1.xfrom
classicrocker883:bugfix-2.1.x-October8

Conversation

@classicrocker883

Copy link
Copy Markdown
Contributor

Description

These are fixes for the following warnings

powerloss.cpp

'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct job_recovery_info_t'; use assignment or value-initialization instead [-Wclass-memaccess]
void PrintJobRecovery::init() 
-{ memset(&info, 0, sizeof(info)); }

+{ info = {}; }

// Possible 2nd option for fix //
+{ info = job_recovery_info_t(); }

limits.h

narrowing conversion from 'int' to 'short unsigned int' [-Wnarrowing]
// Homing Feedrate limits
EDITABLE_HOMING_FEEDRATE
-xyz_uint_t
+xyz_ulong_t

Finally, there is a typo in proui/dwin.cpp, and also removed static from editable homing feedrate menu item

Requirements

Benefits

Configurations

Related Issues

@thinkyhead
thinkyhead merged commit 4b6109f into MarlinFirmware:bugfix-2.1.x Nov 12, 2024
@classicrocker883
classicrocker883 deleted the bugfix-2.1.x-October8 branch November 13, 2024 09:35
bsdnomad pushed a commit to bsdnomad/Marlin that referenced this pull request Nov 25, 2024
EvilGremlin pushed a commit to EvilGremlin/Marlin that referenced this pull request May 15, 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