diff options
| author | Jason Rumney | 2009-04-06 14:54:36 +0000 |
|---|---|---|
| committer | Jason Rumney | 2009-04-06 14:54:36 +0000 |
| commit | 472c36097b3a6f598ded7f455279af32c05a0ae3 (patch) | |
| tree | 5b7705796d2b6933e6d86e00e754021595512f1e /src | |
| parent | 2bf4ad49e427c5f6b02afd76c7ef6dd8c614e5e3 (diff) | |
| download | emacs-472c36097b3a6f598ded7f455279af32c05a0ae3.tar.gz emacs-472c36097b3a6f598ded7f455279af32c05a0ae3.zip | |
(x_set_font): Avoid C99 mid-block variable declaration.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/frame.c | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 7d0f307e4a3..a76c86f1195 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2009-04-06 Jason Rumney <jasonr@gnu.org> | ||
| 2 | |||
| 3 | * frame.c (x_set_font): Avoid C99 mid-block variable declaration. | ||
| 4 | |||
| 1 | 2009-04-06 Kenichi Handa <handa@m17n.org> | 5 | 2009-04-06 Kenichi Handa <handa@m17n.org> |
| 2 | 6 | ||
| 3 | * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle. | 7 | * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle. |
diff --git a/src/frame.c b/src/frame.c index 1a110219e6a..80a691e35fd 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -3367,9 +3367,8 @@ x_set_font (f, arg, oldval) | |||
| 3367 | struct frame *f; | 3367 | struct frame *f; |
| 3368 | Lisp_Object arg, oldval; | 3368 | Lisp_Object arg, oldval; |
| 3369 | { | 3369 | { |
| 3370 | Lisp_Object frame; | 3370 | Lisp_Object frame, font_object, lval; |
| 3371 | int fontset = -1; | 3371 | int fontset = -1; |
| 3372 | Lisp_Object font_object; | ||
| 3373 | 3372 | ||
| 3374 | /* Set the frame parameter back to the old value because we may | 3373 | /* Set the frame parameter back to the old value because we may |
| 3375 | fail to use ARG as the new parameter value. */ | 3374 | fail to use ARG as the new parameter value. */ |
| @@ -3427,7 +3426,7 @@ x_set_font (f, arg, oldval) | |||
| 3427 | return; | 3426 | return; |
| 3428 | 3427 | ||
| 3429 | 3428 | ||
| 3430 | Lisp_Object lval = Fassq (Qfullscreen, f->param_alist); | 3429 | lval = Fassq (Qfullscreen, f->param_alist); |
| 3431 | if (CONSP (lval)) lval = CDR (lval); | 3430 | if (CONSP (lval)) lval = CDR (lval); |
| 3432 | 3431 | ||
| 3433 | x_new_font (f, font_object, fontset); | 3432 | x_new_font (f, font_object, fontset); |