aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-iterator.c
diff options
context:
space:
mode:
authorBob Duff <duff@adacore.com>2019-08-19 08:37:23 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2019-08-19 08:37:23 +0000
commitbfa6962fc25e2e24b3a5299095e933f9b57bb6e0 (patch)
treee3a0a408bda5ba809d8c1f2321ab06b27d02e2aa /gcc/gimple-iterator.c
parentfcef060c9b321edcb24a56616588e712c22029ba (diff)
downloadgcc-bfa6962fc25e2e24b3a5299095e933f9b57bb6e0.zip
gcc-bfa6962fc25e2e24b3a5299095e933f9b57bb6e0.tar.gz
gcc-bfa6962fc25e2e24b3a5299095e933f9b57bb6e0.tar.bz2
[Ada] Suppress warnings on unreferenced parameters of dispatching ops
If the -gnatwf switch is used to activate warnings on unreferenced formal parameters, the warning is no longer given if the subprogram is dispatching, because such warnings tend to be noise. It is quite common to have a parameter that is necessary just because the subprogram is overriding, or just because we need a controlling parameter for the dispatch. 2019-08-19 Bob Duff <duff@adacore.com> gcc/ada/ * sem_warn.adb (Warn_On_Unreferenced_Entity): Suppress warning on formal parameters of dispatching operations. gcc/testsuite/ * gnat.dg/warn29.adb, gnat.dg/warn29.ads: New testcase. From-SVN: r274663
Diffstat (limited to 'gcc/gimple-iterator.c')
0 files changed, 0 insertions, 0 deletions