diff options
author | Shahab Vahedi <shahab@synopsys.com> | 2022-07-18 13:44:06 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@redhat.com> | 2022-07-18 13:44:06 -0400 |
commit | cc2d459520de4f6680a0e9e9356d014356bd4718 (patch) | |
tree | 94d0daf05c781ac93e1d24f99b83e9fb0d97a36b /libdwfl/debuginfod-client.c | |
parent | 2fb8571e78852cc71c0128705f500490d79f8a94 (diff) | |
download | elfutils-cc2d459520de4f6680a0e9e9356d014356bd4718.tar.gz |
dwfl_get_debuginfod_client: add dummy parameter for --disable-libdebuginfod
Since the stub version of "dwfl_get_debuginfod_client" doesn't name its
parameter, building elfuitls fails on a system with gcc 10.2.1:
-----------------------------------------------------------------------------
$ ./configure ... --disable-libdebuginfod
$ make
Making all in libdwfl
CC debuginfod-client.o
/src/libdwfl/debuginfod-client.c: In function 'dwfl_get_debuginfod_client':
/src/libdwfl/debuginfod-client.c:145:29: error: parameter name omitted
145 | dwfl_get_debuginfod_client (Dwfl *)
| ^~~~~~
make[2]: *** [Makefile:707: debuginfod-client.o] Error 1
-----------------------------------------------------------------------------
This fixes the issue by providing a name for the unused parameter.
Signed-off-by: Shahab Vahedi <shahab@synopsys.com>
Diffstat (limited to 'libdwfl/debuginfod-client.c')
-rw-r--r-- | libdwfl/debuginfod-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdwfl/debuginfod-client.c b/libdwfl/debuginfod-client.c index 87af73a7..d581daab 100644 --- a/libdwfl/debuginfod-client.c +++ b/libdwfl/debuginfod-client.c @@ -142,7 +142,7 @@ __libdwfl_debuginfod_init (void) #else // ENABLE_LIBDEBUGINFOD debuginfod_client * -dwfl_get_debuginfod_client (Dwfl *) +dwfl_get_debuginfod_client (Dwfl *dummy __attribute__ ((unused))) { return NULL; } |