Skip to content

scheduler: Fix build failure on Linux with '-Werror -Wall'#835

Merged
zdohnal merged 1 commit intoOpenPrinting:masterfrom
zdohnal:werror-linux-build-failure
Nov 29, 2023
Merged

scheduler: Fix build failure on Linux with '-Werror -Wall'#835
zdohnal merged 1 commit intoOpenPrinting:masterfrom
zdohnal:werror-linux-build-failure

Conversation

@zdohnal
Copy link
Member

@zdohnal zdohnal commented Nov 27, 2023

The string which we add into array stays const after fixing #814 (because strdup(), which caused memory leak returned char *) and compiler fails because of it if it runs with '-Werror -Wall'.

The string which we add into array stays `const` after fixing OpenPrinting#814
(because `strdup()`, which caused memory leak returned `char *`)
and compiler fails because of it if it runs with '-Werror -Wall'.
Copy link
Member

@michaelrsweet michaelrsweet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@zdohnal zdohnal merged commit 97d269c into OpenPrinting:master Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants