aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <[email protected]>2011-03-14 18:25:31 -0700
committerPaul Eggert <[email protected]>2011-03-14 18:25:31 -0700
commitf0cb4a607918c065ebedfd62eb0187b0d49f67d6 (patch)
treeda8769755db0aea558878e0d32aa0f74b678db4d /src
parent85876d07948fa6dba29b987c20eadd1b4c7aad1a (diff)
* insdel.c (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog1
-rw-r--r--src/insdel.c9
2 files changed, 7 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 6717ce1489..69d658eade 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 a429ae6a1e..18495e6c90 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)