From 096a9774c8a8c8710f07e2fbab54e35efeb38050 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 15 Jun 2011 12:29:18 -0700 Subject: [PATCH] * fileio.c (emacs_lseek): Work around GCC bug 43772. --- src/fileio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fileio.c b/src/fileio.c index 2e0b3831e8d..fd5277cbd59 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -3114,7 +3114,9 @@ read_non_regular_quit (Lisp_Object ignore) static off_t emacs_lseek (int fd, EMACS_INT offset, int whence) { - if (! (TYPE_MINIMUM (off_t) <= offset && offset <= TYPE_MAXIMUM (off_t))) + /* Use "&" rather than "&&" to suppress a bogus GCC warning; see + . */ + if (! ((TYPE_MINIMUM (off_t) <= offset) & (offset <= TYPE_MAXIMUM (off_t)))) { errno = EINVAL; return -1; -- 2.11.4.GIT