mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
* 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
This commit is contained in:
parent
3346c1d0a8
commit
1a353a145d
2 changed files with 8 additions and 2 deletions
|
|
@ -1,3 +1,9 @@
|
||||||
|
2013-01-15 Paul Eggert <eggert@cs.ucla.edu>
|
||||||
|
|
||||||
|
* make-docfile.c (write_globals): Make it a bit clearer (Bug#13448).
|
||||||
|
This pacifies GCC 4.7.2 when Emacs is configured with
|
||||||
|
--enable-link-time-optimization and --enable-gcc-warnings.
|
||||||
|
|
||||||
2013-01-01 Juanma Barranquero <lekktu@gmail.com>
|
2013-01-01 Juanma Barranquero <lekktu@gmail.com>
|
||||||
|
|
||||||
* makefile.w32-in (lisp1): Add macroexp.elc (bug#13320).
|
* makefile.w32-in (lisp1): Add macroexp.elc (bug#13320).
|
||||||
|
|
|
||||||
|
|
@ -624,7 +624,7 @@ write_globals (void)
|
||||||
qsort (globals, num_globals, sizeof (struct global), compare_globals);
|
qsort (globals, num_globals, sizeof (struct global), compare_globals);
|
||||||
for (i = 0; i < num_globals; ++i)
|
for (i = 0; i < num_globals; ++i)
|
||||||
{
|
{
|
||||||
char const *type;
|
char const *type = 0;
|
||||||
|
|
||||||
switch (globals[i].type)
|
switch (globals[i].type)
|
||||||
{
|
{
|
||||||
|
|
@ -649,7 +649,7 @@ write_globals (void)
|
||||||
fatal ("not a recognized DEFVAR_", 0);
|
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, " %s f_%s;\n", type, globals[i].name);
|
||||||
fprintf (outfile, "#define %s globals.f_%s\n",
|
fprintf (outfile, "#define %s globals.f_%s\n",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue