Carl Ponder - 2 days ago

The compile-line is

nvc -m64 -tp=native -fpic -noswitcherror -Masmkeyword -D__thread='' -mp -lpthread  -g -Wall -Werror -Wextra -Wno-unused-parameter -I. -I/usr/local/build/include -DCONFIG_PFMLIB_DEBUG -DCONFIG_PFMLIB_OS_LINUX -DCONFIG_PFMLIB_NOTRACEPOINT  -g -Wall -Werror -Wextra -Wno-unused-parameter -I. -I/usr/local/build/lib/../include -DCONFIG_PFMLIB_DEBUG -DCONFIG_PFMLIB_OS_LINUX -DCONFIG_PFMLIB_NOTRACEPOINT -DHAS_OPENAT -D_REENTRANT -I. -fvisibility=hidden -DCONFIG_PFMLIB_ARCH_ARM64 -I. -c pfmlib_common.c
nvc -m64 -tp=native -fpic -noswitcherror -Masmkeyword -D__thread='' -mp -lpthread  -g -Wall -Werror -Wextra -Wno-unused-parameter -I. -I/usr/local/build/include -DCONFIG_PFMLIB_DEBUG -DCONFIG_PFMLIB_OS_LINUX -DCONFIG_PFMLIB_NOTRACEPOINT  -g -Wall -Werror -Wextra -Wno-unused-parameter -I. -I/usr/local/build/lib/../include -DCONFIG_PFMLIB_DEBUG -DCONFIG_PFMLIB_OS_LINUX -DCONFIG_PFMLIB_NOTRACEPOINT -DHAS_OPENAT -D_REENTRANT -I. -fvisibility=hidden -DCONFIG_PFMLIB_ARCH_ARM64 -I. -c pfmlib_perf_event_pmu.c

I can suppress the failure by using the invocation-line

make DBG="-g -Wall -Wextra" ...

to remove the -Werror -Wno-unused-parameter flags. But I assume that the intent of the default is to flag this sort of coding issue.