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

Investigate mismatched/incompatible pointer type warnings #23

Open
bkaestner opened this issue Feb 15, 2022 · 0 comments
Open

Investigate mismatched/incompatible pointer type warnings #23

bkaestner opened this issue Feb 15, 2022 · 0 comments

Comments

@bkaestner
Copy link
Contributor

See the recent build log:

/home/runner/work/flux-compose/flux-compose/lib/mesche/src/object.c: In function ‘mesche_object_make_closure’:
/home/runner/work/flux-compose/flux-compose/lib/mesche/src/object.c:9:3: warning: initialization of ‘ObjectUpvalue **’ {aka ‘struct ObjectUpvalue **’} from incompatible pointer type ‘ObjectUpvalue *’ {aka ‘struct ObjectUpvalue *’} [-Wincompatible-pointer-types]
    9 |   (type)mesche_mem_realloc(NULL, 0, sizeof(type) * count)

ALLOC seems to be missing a star in the typecast. Luckily, there is only one call of ALLOC, and type is a pointer type there.

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

No branches or pull requests

1 participant