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

Fixed compiler warning -Werror=enum-int-mismatch #230

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

larsewi
Copy link
Contributor

@larsewi larsewi commented Nov 21, 2024

Ticket: None
Changelog: None
Signed-off-by: Lars Erik Wik [email protected]

@mender-test-bot
Copy link

There was an error running your pipeline, see logs for details.

@larsewi
Copy link
Contributor Author

larsewi commented Nov 21, 2024

@cf-bottom jenkins please :)

@cf-bottom
Copy link

Copy link
Contributor

@craigcomstock craigcomstock left a comment

Choose a reason for hiding this comment

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

one typo to fix, and wonder about being more detailed in why this change.

libutils/logging.h Outdated Show resolved Hide resolved
libutils/logging.h Outdated Show resolved Hide resolved
@mender-test-bot
Copy link

There was an error running your pipeline, see logs for details.

The function LogToSystemLog now takes an int as the log level, although
the desired type would be the enum "LogLevel". For some C compilers, the
last required argument must be self-promoting: that is, the default
promotions must not change its type (this is actually an ISO C
requirement). However, enums promote to an int. Thus, we cannot use them
and must use int instead.

Ticket: None
Changelog: None
Signed-off-by: Lars Erik Wik <[email protected]>
Co-authored-by: Craig Comstock <[email protected]>
@mender-test-bot
Copy link

There was an error running your pipeline, see logs for details.

@larsewi larsewi merged commit 69e2624 into NorthernTechHQ:master Nov 22, 2024
4 checks passed
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.

4 participants