Skip to content

Commit

Permalink
common: ignore unused-parameters
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Gromadzki <[email protected]>
  • Loading branch information
grom72 committed Oct 5, 2023
1 parent dd97685 commit d04ccf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ DEFAULT_CFLAGS += -Wmissing-prototypes
DEFAULT_CFLAGS += -Wpointer-arith
DEFAULT_CFLAGS += -Wsign-conversion
DEFAULT_CFLAGS += -Wsign-compare
DEFAULT_CFLAGS += -Wunused-parameter
# DEFAULT_CFLAGS += -Wunused-parameter

ifeq ($(WCONVERSION_AVAILABLE), y)
DEFAULT_CFLAGS += -Wconversion
Expand Down
2 changes: 1 addition & 1 deletion src/libpmem2/x86_64/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pmem_memmove_nodrain(void *dest, const void *src, size_t len, unsigned flags,
flush_func flushf, const struct memmove_nodrain *memmove_funcs)
{
/* suppress unused-parameter errors */
SUPPRESS_UNUSED(flushf);
/* SUPPRESS_UNUSED(flushf); */

if (len == 0 || src == dest)
return dest;
Expand Down

0 comments on commit d04ccf2

Please sign in to comment.