From: Paul Eggert Date: Tue, 15 Mar 2011 01:25:31 +0000 (-0700) Subject: * insdel.c (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~554^2~91 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f0cb4a607918c065ebedfd62eb0187b0d49f67d6;p=emacs.git * insdel.c (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic. --- diff --git a/src/ChangeLog b/src/ChangeLog index 6717ce1489e..69d658eade2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -2,6 +2,7 @@ * insdel.c (check_markers, make_gap_larger, make_gap_smaller): (reset_var_on_error, Fcombine_after_change_execute_1): Now static. + (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic. * filelock.c (within_one_second): Now static. (lock_file_1): Rename local to avoid shadowing. diff --git a/src/insdel.c b/src/insdel.c index a429ae6a1e3..18495e6c903 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -70,9 +70,12 @@ Lisp_Object combine_after_change_buffer; Lisp_Object Qinhibit_modification_hooks; #define CHECK_MARKERS() \ - if (check_markers_debug_flag) \ - check_markers (); \ - else + do \ + { \ + if (check_markers_debug_flag) \ + check_markers (); \ + } \ + while (0) static void check_markers (void)