From: Paul Eggert Date: Wed, 15 Jun 2011 19:29:18 +0000 (-0700) Subject: * fileio.c (emacs_lseek): Work around GCC bug 43772. X-Git-Tag: emacs-pretest-24.0.90~104^2~548^2~1 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=096a9774c8a8c8710f07e2fbab54e35efeb38050;p=emacs.git * fileio.c (emacs_lseek): Work around GCC bug 43772. --- 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;