-
Notifications
You must be signed in to change notification settings - Fork 19
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
Conversation
There was an error running your pipeline, see logs for details. |
@cf-bottom jenkins please :) |
Sure, I triggered a build: Jenkins: https://ci.cfengine.com/job/pr-pipeline/11444/ Packages: http://buildcache.cfengine.com/packages/testing-pr/jenkins-pr-pipeline-11444/ |
There was a problem hiding this 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.
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]>
There was an error running your pipeline, see logs for details. |
Ticket: None
Changelog: None
Signed-off-by: Lars Erik Wik [email protected]