-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
patcheswelcomeNo one internal is working on this but an external contributor's help is very welcome!No one internal is working on this but an external contributor's help is very welcome!
Description
Line 9 in c63e865
| * g++ -O2 -g -shared -rdynamic -fPIC -o cpp_null null.c \ |
hi I'm not able to complile the null.c with the command, could u please doube check the code
g++ -O2 -g -shared -rdynamic -fPIC -o cpp_null null.c -include ../config-host.h -DFIO_EXTERNAL_ENGINE
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
null.c:110:7: error: assigning to 'struct null_data *' from incompatible type 'void *'
nd = malloc(sizeof(*nd));
^~~~~~~~~~~~~~~~~~~
null.c:115:15: error: assigning to 'struct io_u **' from incompatible type 'void *'
nd->io_us = calloc(td->o.iodepth, sizeof(struct io_u *));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
Metadata
Metadata
Assignees
Labels
patcheswelcomeNo one internal is working on this but an external contributor's help is very welcome!No one internal is working on this but an external contributor's help is very welcome!