public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-886] [Ada] Fix "formal parameter & is not referenced" not being properly tagged
@ 2022-06-01  8:45 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-06-01  8:45 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:fdb2f2e696250fafc13635ac8c026d82e05f7738

commit r13-886-gfdb2f2e696250fafc13635ac8c026d82e05f7738
Author: Ghjuvan Lacambre <lacambre@adacore.com>
Date:   Wed May 4 13:31:07 2022 +0200

    [Ada] Fix "formal parameter & is not referenced" not being properly tagged
    
    gcc/ada/
    
            * sem_warn.adb (Warn_On_Unreferenced_Entity): Fix warning tag.

Diff:
---
 gcc/ada/sem_warn.adb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/ada/sem_warn.adb b/gcc/ada/sem_warn.adb
index 3dd8cd049ff..b23be725437 100644
--- a/gcc/ada/sem_warn.adb
+++ b/gcc/ada/sem_warn.adb
@@ -4414,9 +4414,10 @@ package body Sem_Warn is
 
                         if (No (S) or else not Is_Dispatching_Operation (S))
                           and then not Is_Trivial_Subprogram (Scope (E))
+                          and then Check_Unreferenced_Formals
                         then
                            Error_Msg_NE -- CODEFIX
-                             ("?u?formal parameter & is not referenced!",
+                             ("?f?formal parameter & is not referenced!",
                               E, Spec_E);
                         end if;
                      end;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-01  8:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-01  8:45 [gcc r13-886] [Ada] Fix "formal parameter & is not referenced" not being properly tagged Pierre-Marie de Rodat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).