aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/options.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fortran/options.cc')
-rw-r--r--gcc/fortran/options.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/fortran/options.cc b/gcc/fortran/options.cc
index 2ad2247..cfb1957 100644
--- a/gcc/fortran/options.cc
+++ b/gcc/fortran/options.cc
@@ -389,8 +389,7 @@ gfc_post_options (const char **pfilename)
/* Enable -Werror=line-truncation when -Werror and -Wno-error have
not been set. */
if (warn_line_truncation && !OPTION_SET_P (warnings_are_errors)
- && (global_dc->classify_diagnostic[OPT_Wline_truncation] ==
- DK_UNSPECIFIED))
+ && option_unspecified_p (OPT_Wline_truncation))
diagnostic_classify_diagnostic (global_dc, OPT_Wline_truncation,
DK_ERROR, UNKNOWN_LOCATION);
}