projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bee8b86
)
libgcov: add ATTRIBUTE_UNUSED for dump_string
author
Martin Liska
<mliska@suse.cz>
Mon, 2 May 2022 04:46:05 +0000
(06:46 +0200)
committer
Martin Liska
<mliska@suse.cz>
Mon, 2 May 2022 04:46:05 +0000
(06:46 +0200)
Mitigates the following clang warning:
libgcc/libgcov-driver.c:416:1: warning: unused function 'dump_string' [-Wunused-function]
libgcc/ChangeLog:
* libgcov-driver.c: Add ATTRIBUTE_UNUSED.
libgcc/libgcov-driver.c
patch
|
blob
|
history
diff --git
a/libgcc/libgcov-driver.c
b/libgcc/libgcov-driver.c
index
d4517d2
..
aba62d5
100644
(file)
--- a/
libgcc/libgcov-driver.c
+++ b/
libgcc/libgcov-driver.c
@@
-413,6
+413,7
@@
dump_counter (gcov_type counter,
/* Dump the STRING using the DUMP handler called with ARG. */
static inline void
+ATTRIBUTE_UNUSED
dump_string (const char *string,
void (*dump_fn) (const void *, unsigned, void *),
void *arg)