Hi.

This is addition of a missing ATTRIBUTE_UNUSED that is needed
as the usage is conditional (#ifdef).

I'm going to install the patch.

Thanks,
Martin

libgcc/ChangeLog:

2019-06-10  Martin Liska  <mli...@suse.cz>

        PR bootstrap/90808
        * libgcov.h: Add ATTRIBUTE_UNUSED.
---
 libgcc/libgcov.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/libgcc/libgcov.h b/libgcc/libgcov.h
index 144b4817a37..7f316146d49 100644
--- a/libgcc/libgcov.h
+++ b/libgcc/libgcov.h
@@ -328,7 +328,7 @@ gcov_get_counter (void)
    when read value is equal to IGNORE_SCALING.  */
 
 static inline gcov_type
-gcov_get_counter_ignore_scaling (gcov_type ignore_scaling)
+gcov_get_counter_ignore_scaling (gcov_type ignore_scaling ATTRIBUTE_UNUSED)
 {
 #ifndef IN_GCOV_TOOL
   /* This version is for reading count values in libgcov runtime:

Reply via email to