diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2013-01-15 13:26:01 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-01-15 13:26:01 -0800 |
commit | 1a353a145dba49c91cdf4d2189ebe6579cae24ac (patch) | |
tree | f219e0d7435921833e2deb9e12d7ebe48e37a7fe /lib-src/make-docfile.c | |
parent | 3346c1d0a8e53bc883bf07d8c7d4fbd8d3d6a690 (diff) |
* make-docfile.c (write_globals): Make it a bit clearer.
This pacifies GCC 4.7.2 when Emacs is configured with
--enable-link-time-optimization and --enable-gcc-warnings.
Fixes: debbugs:13448
Diffstat (limited to 'lib-src/make-docfile.c')
-rw-r--r-- | lib-src/make-docfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c index 54a53c0d44..68e5279fd1 100644 --- a/lib-src/make-docfile.c +++ b/lib-src/make-docfile.c @@ -624,7 +624,7 @@ write_globals (void) qsort (globals, num_globals, sizeof (struct global), compare_globals); for (i = 0; i < num_globals; ++i) { - char const *type; + char const *type = 0; switch (globals[i].type) { @@ -649,7 +649,7 @@ write_globals (void) fatal ("not a recognized DEFVAR_", 0); } - if (globals[i].type != FUNCTION) + if (type) { fprintf (outfile, " %s f_%s;\n", type, globals[i].name); fprintf (outfile, "#define %s globals.f_%s\n", |