diff mbox series

options: Tiny refactor

Message ID 067283e2-48cd-5e69-4a53-b3c4c3c08936@acm.org
State New
Headers show
Series options: Tiny refactor | expand

Commit Message

Nathan Sidwell Nov. 2, 2020, 4:52 p.m. UTC
This changes more on the modules branch, but let's move	the
declaration to the initializer now.

         gcc/c-family/
         * c-opts.c (c_common_post_options): Move var decl to its
         initialization point.

pushing to trunk
diff mbox series

Patch

diff --git i/gcc/c-family/c-opts.c w/gcc/c-family/c-opts.c
index 120f4489f6c..0698e58a335 100644
--- i/gcc/c-family/c-opts.c
+++ w/gcc/c-family/c-opts.c
@@ -752,8 +752,6 @@  default_handle_c_option (size_t code ATTRIBUTE_UNUSED,
 bool
 c_common_post_options (const char **pfilename)
 {
-  struct cpp_callbacks *cb;
-
   /* Canonicalize the input and output filenames.  */
   if (in_fnames == NULL)
     {
@@ -1105,7 +1103,7 @@  c_common_post_options (const char **pfilename)
       input_location = UNKNOWN_LOCATION;
     }
 
-  cb = cpp_get_callbacks (parse_in);
+  struct cpp_callbacks *cb = cpp_get_callbacks (parse_in);
   cb->file_change = cb_file_change;
   cb->dir_change = cb_dir_change;
   cpp_post_options (parse_in);