diff options
author | Lukasz Dorau <lukasz.dorau@intel.com> | 2021-01-27 08:27:53 +0100 |
---|---|---|
committer | Lukasz Dorau <lukasz.dorau@intel.com> | 2021-01-27 11:01:54 +0100 |
commit | 8ca01e0c3e18b9af9f324e61bd1b970531880496 (patch) | |
tree | c00f6f302abd5560aecd6c527870dfd544ac4820 /configure | |
parent | 7216b664d93ef9c59ca5dbc8f54bad2118231ee3 (diff) | |
download | fio-8ca01e0c3e18b9af9f324e61bd1b970531880496.tar.gz fio-8ca01e0c3e18b9af9f324e61bd1b970531880496.tar.bz2 |
fio: fix detecting libpmem
The current test for libpmem in 'configure' fails
in the following way:
$ gcc test.c -lpmem
test.c: In function ‘main’:
test.c:6:27: warning: passing argument 2 of ‘pmem_is_pmem’ \
makes integer from pointer \
without a cast [-Wint-conversion]
6 | rc = pmem_is_pmem(NULL, NULL);
| ^~~~
| |
| void *
In file included from test.c:1:
/usr/include/libpmem.h:92:43: note: expected ‘size_t’ \
{aka ‘long unsigned int’} but argument \
is of type ‘void *’
92 | int pmem_is_pmem(const void *addr, size_t len);
| ~~~~~~~^~~
Fix it.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2055,7 +2055,7 @@ cat > $TMPC << EOF int main(int argc, char **argv) { int rc; - rc = pmem_is_pmem(NULL, NULL); + rc = pmem_is_pmem(NULL, 0); return 0; } EOF |