]> git.eshelyaron.com Git - emacs.git/commitdiff
* conf_post.h (assume): Fix compiler error: x shall be cond.
authorJan Djärv <jan.h.d@swipnet.se>
Sun, 22 Sep 2013 11:07:17 +0000 (13:07 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Sun, 22 Sep 2013 11:07:17 +0000 (13:07 +0200)
src/ChangeLog
src/conf_post.h

index d679a0ae9c968cb3db59de9aa3b359a70bf5fab0..e6901fd86804b680f470fb49f1bc0f4c6989d6ca 100644 (file)
@@ -1,3 +1,7 @@
+2013-09-22  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * conf_post.h (assume): Fix compiler error: x shall be cond.
+
 2013-09-22  Daniel Colascione  <dancol@dancol.org>
 
        * xfns.c (x_get_monitor_attributes): Suppress unused variable
index 5f6cf0eca3768af8712c80031252358ff3cbb5b7..14af38ce70ba0de001c206fb079df6fa6944b079 100644 (file)
@@ -253,7 +253,7 @@ extern void _DebPrint (const char *fmt, ...);
 #if defined lint
 # define assume(cond) ((cond) ? (void) 0 : abort ())
 #elif (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) || __GNUC__ > 4
-# define assume(cond) ((x) || (__builtin_unreachable(), 0))
+# define assume(cond) ((cond) || (__builtin_unreachable(), 0))
 #elif defined __MSC_VER
 # define assume(cond) __assume ((cond))
 #else