diff options
author | David Malcolm <dmalcolm@redhat.com> | 2025-05-06 09:26:19 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2025-05-06 09:26:19 -0400 |
commit | f4fa41cd5ccbcc1a45e68c15bda2461e8d7215b9 (patch) | |
tree | eb3f99c0dd09615882faedbe218ab9bfc9337860 | |
parent | 52fe9502eb153f87154cfcb6a58ab84164d7e1d9 (diff) | |
download | gcc-f4fa41cd5ccbcc1a45e68c15bda2461e8d7215b9.zip gcc-f4fa41cd5ccbcc1a45e68c15bda2461e8d7215b9.tar.gz gcc-f4fa41cd5ccbcc1a45e68c15bda2461e8d7215b9.tar.bz2 |
diagnostics: use diagnostic_option_id in one more place
No functional change intended.
gcc/ChangeLog:
* selftest-diagnostic.cc (test_diagnostic_context::report): Use
diagnostic_option_id rather than plain int.
* selftest-diagnostic.h (test_diagnostic_context::report):
Likewise.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
-rw-r--r-- | gcc/selftest-diagnostic.cc | 2 | ||||
-rw-r--r-- | gcc/selftest-diagnostic.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/selftest-diagnostic.cc b/gcc/selftest-diagnostic.cc index 8cf47ab..1a10807 100644 --- a/gcc/selftest-diagnostic.cc +++ b/gcc/selftest-diagnostic.cc @@ -69,7 +69,7 @@ bool test_diagnostic_context::report (diagnostic_t kind, rich_location &richloc, const diagnostic_metadata *metadata, - int option, + diagnostic_option_id option, const char * fmt, ...) { va_list ap; diff --git a/gcc/selftest-diagnostic.h b/gcc/selftest-diagnostic.h index dccad97..c8f67a0 100644 --- a/gcc/selftest-diagnostic.h +++ b/gcc/selftest-diagnostic.h @@ -50,7 +50,7 @@ class test_diagnostic_context : public diagnostic_context report (diagnostic_t kind, rich_location &richloc, const diagnostic_metadata *metadata, - int option, + diagnostic_option_id option, const char * fmt, ...) ATTRIBUTE_GCC_DIAG(6,7); const char *test_show_locus (rich_location &richloc); |