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;