fio
fio copied to clipboard
not able to compile it with the g++ command in the comment
https://github.com/axboe/fio/blob/c63e8658bb776f2d50cde992ad07232a61e6d031/engines/null.c#L9
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.