Skip to content

Commit

Permalink
pmem: disable flag verification until pmem#5979 is fixed
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Gromadzki <[email protected]>
  • Loading branch information
grom72 committed Jan 25, 2024
1 parent 6ee3f36 commit 869bc58
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/libpmem/pmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,9 +597,15 @@ pmem_memcpy(void *pmemdest, const void *src, size_t len, unsigned flags)
LOG(15, "pmemdest %p src %p len %zu flags 0x%x",
pmemdest, src, len, flags);

/*
* Disable this warning until #5979 is fixed
* https://github.com/pmem/pmdk/issues/5979
*/
#if 0
#ifdef DEBUG
if (flags & ~PMEM_F_MEM_VALID_FLAGS)
ERR("invalid flags 0x%x", flags);
#endif
#endif
PMEM_API_START();
Funcs.memmove_nodrain(pmemdest, src, len, flags & ~PMEM_F_MEM_NODRAIN,
Expand Down

0 comments on commit 869bc58

Please sign in to comment.