[OBVIOUS] Add missing ATTR_UNUSED (PR bootstrap/90808).

Message ID 0ff5063e-3b53-b101-ed86-b5130d438ad1@suse.cz
State New
Headers show
Series
  • [OBVIOUS] Add missing ATTR_UNUSED (PR bootstrap/90808).
Related show

Commit Message

Martin Liška June 10, 2019, 9:53 a.m.
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  <mliska@suse.cz>

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

Patch

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: