From: David Malcolm Date: Mon, 28 Apr 2025 22:21:18 +0000 (-0400) Subject: diagnostics: use diagnostic_option_id for m_opt_permissive X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc39b0072f5660dd5dbacd551312be24281226ce;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h index c679017d285..36f4a1c8f9f 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;