We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
fio/engines/null.c
Line 9 in c63e865
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.
The text was updated successfully, but these errors were encountered:
alson I am not able to find config-host.h
Sorry, something went wrong.
Probably needs updating due to anal casting checks on newer c++.
It's generated by configure
No branches or pull requests
fio/engines/null.c
Line 9 in c63e865
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.
The text was updated successfully, but these errors were encountered: