diff options
author | Nathan Sidwell <nathan@acm.org> | 2020-11-02 08:50:42 -0800 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2020-11-02 08:56:39 -0800 |
commit | 48a201e9bc8d9de74824ba335d910dfb98113866 (patch) | |
tree | 491852f2b4fd7685f5df1728592de8588c23886d /gcc | |
parent | a0bc61e0b6da2ff9aca05d7b389a9c114a034052 (diff) | |
download | gcc-48a201e9bc8d9de74824ba335d910dfb98113866.zip gcc-48a201e9bc8d9de74824ba335d910dfb98113866.tar.gz gcc-48a201e9bc8d9de74824ba335d910dfb98113866.tar.bz2 |
options: Tiny refactor
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-family/c-opts.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/c-family/c-opts.c b/gcc/c-family/c-opts.c index 120f448..0698e58 100644 --- a/gcc/c-family/c-opts.c +++ b/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); |