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

commit r16-252-gbc39b0072f5660dd5dbacd551312be24281226ce
Author: David Malcolm <dmalc...@redhat.com>
Date:   Mon Apr 28 18:21:18 2025 -0400

    diagnostics: use diagnostic_option_id for m_opt_permissive
    
    gcc/ChangeLog:
            * diagnostic.h (diagnostic_context::m_opt_permissive): Convert
            from int to diagnostic_option_id.  Update comment.
    
    Signed-off-by: David Malcolm <dmalc...@redhat.com>

Diff:
---
 gcc/diagnostic.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h
index c679017d2850..36f4a1c8f9f3 100644
--- a/gcc/diagnostic.h
+++ b/gcc/diagnostic.h
@@ -848,9 +848,9 @@ public:
   /* True if permerrors are warnings.  */
   bool m_permissive;
 
-  /* The index of the option to associate with turning permerrors into
-     warnings.  */
-  int m_opt_permissive;
+  /* The option to associate with turning permerrors into warnings,
+     if any.  */
+  diagnostic_option_id m_opt_permissive;
 
   /* True if errors are fatal.  */
   bool m_fatal_errors;

Reply via email to