* conf_post.h (assume): Fix compiler error: x shall be cond.

This commit is contained in:
Jan Djärv 2013-09-22 13:07:17 +02:00
parent cd9356f211
commit 8fef36c6ff
2 changed files with 5 additions and 1 deletions

View 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

View 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