Fix compilation issue introduced in r17-2365-gc5627f93a82591
Resolves a compilation error by removing a misplaced diagnostic option reference.
This commit fixes a compilation issue that arose from a previous change (r17-2365-gc5627f93a82591). The problem was caused by a leftover reference to the OPT_Wuse_after_free option in gcc-diagnostic-spec.cc, which has now been removed.
In Details
Commit c5627f93a82591 introduced changes to how -Wuse-after-free is handled, aliasing it to -Wuse-after-free=1 and standardizing on OPT_Wuse_after_free_. However, a change in gcc-diagnostic-spec.cc inadvertently retained a reference to the now deprecated OPT_Wuse_after_free within the nowarn_spec_t constructor. This commit removes that direct reference, preventing a compilation error in gcc-diagnostic-spec.cc and aligning it with the updated option handling.
- OPT_Wuse_after_free
- An internal GCC option code representing the
-Wuse-after-freewarning flag when it's expected to take no argument. This specific option code is being phased out in favor of a unified approach. - compiler diagnostics
- Messages issued by the compiler to inform the user about potential problems, errors, or warnings in the source code. These are often controlled by flags like
-W....