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

Add missing include <assert.h> #25

Closed
wants to merge 1 commit into from
Closed

Conversation

Uglymotha
Copy link
Contributor

checkers.c: In function 'start_checker_thread':
checkers.c:392:9: error: implicit declaration of function 'assert' [-Werror=implicit-function-declaration]
392 | assert(ctx && ctx->cls && ctx->cls->thread);
| ^~~~~~
checkers.c:13:1: note: 'assert' is defined in header '<assert.h>'; did you forget to '#include <assert.h>'?

@xosevp
Copy link
Contributor

xosevp commented Jan 13, 2022

Patches should be posted to dm-devel list, see README.

@mwilck
Copy link
Contributor

mwilck commented Feb 16, 2022

Well this is simple enough to be merged without going through the mailing list, I suppose. But we still won't be using a PR workflow.

@Uglymotha, please add a Signed-off-by line.

@mwilck
Copy link
Contributor

mwilck commented Feb 16, 2022

When the s-o-b is added, I'll push this to https://github.com/openSUSE/multipath-tools/tree/queue and include it into the next PR here.

(on those systems where I was testing, assert.h is implicitly included via the liburcu headers. But that's bad style, so I agree it should be added explicitly).

@mwilck
Copy link
Contributor

mwilck commented Feb 17, 2022

@Uglymotha, our policy is to add an s-o-b to every commit. If you can't provide an updated patch, I'll recreate your patch with my s-o-b, giving you credit with a Reported-by: tag. Anyway, I'll wait a few more days.

checkers.c: In function 'start_checker_thread':
checkers.c:392:9: error: implicit declaration of function 'assert' [-Werror=implicit-function-declaration]
  392 |         assert(ctx && ctx->cls && ctx->cls->thread);
      |         ^~~~~~
checkers.c:13:1: note: 'assert' is defined in header '<assert.h>'; did you forget to '#include <assert.h>'?

Signed-off-by: Sietse van Zanen <uglymotha@wizdom.nu>
@Uglymotha
Copy link
Contributor Author

Uglymotha commented Feb 21, 2022 via email

@mwilck mwilck mentioned this pull request Feb 21, 2022
@cvaroqui cvaroqui closed this in #27 Feb 22, 2022
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.

None yet

3 participants