re PR other/42965 (no "warnings being treated as errors" for individual -Werror=x...
[gcc.git] / gcc / toplev.c
index 798f0d493c617d256efa60611473588f71124fff..996bd900e65a6b9b3d55e83bebba08dafeb2d325 100644 (file)
@@ -2466,6 +2466,7 @@ toplev_main (int argc, char **argv)
 
   if (warningcount || errorcount)
     print_ignored_options ();
+  diagnostic_finish (global_dc);
 
   /* Invoke registered plugin callbacks if any.  */
   invoke_plugin_callbacks (PLUGIN_FINISH, NULL);