From: Eli Zaretskii Date: Wed, 18 Dec 2013 16:21:17 +0000 (+0200) Subject: Avoid compiler warnings in w32fns.c:emacs_abort. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~342 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=39e896c178c9e74ddfc4a8d30c3bc5629c692b84;p=emacs.git Avoid compiler warnings in w32fns.c:emacs_abort. src/w32fns.c (emacs_abort): Use intptr_t as argument of INT_BUFSIZE_BOUND, to avoid compiler warnings. --- diff --git a/src/ChangeLog b/src/ChangeLog index 937b5c7c4c4..74fd2bc35b7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2013-12-18 Eli Zaretskii + + * w32fns.c (emacs_abort): Use intptr_t as argument of + INT_BUFSIZE_BOUND, to avoid compiler warnings. + 2013-12-18 Glenn Morris * lread.c (Fload): Pass load_prefer_newer to openp. diff --git a/src/w32fns.c b/src/w32fns.c index 8576d478e42..73197c6a8f2 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -8422,7 +8422,12 @@ emacs_abort (void) int errfile_fd = -1; int j; char buf[sizeof ("\r\nException at this address:\r\n\r\n") - + 2 * INT_BUFSIZE_BOUND (void *)]; + /* The type below should really be 'void *', but + INT_BUFSIZE_BOUND cannot handle that without + triggering compiler warnings (under certain + pedantic warning switches), it wants an + integer type. */ + + 2 * INT_BUFSIZE_BOUND (intptr_t)]; #ifdef CYGWIN int stderr_fd = 2; #else