Subject: Re: bug#13448: Cannot build Emacs 24.2.92

From: Andreas Schwab <[email-masked]>
Date: Tue, 15 Jan 2013 19:48:46 +0100

Xue Fuqiao <[email-masked]> writes:

> In file included from /home/xfq/emacs-24.2.92/lib-src/make-docfile.c:250:0,
>                  from /home/xfq/emacs-24.2.92/lib-src/make-docfile.c:640,
>                  from :20:
> /home/xfq/emacs-24.2.92/lib-src/make-docfile.c: In function ‘main’:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:98:3: error: ‘type’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
> In file included from /home/xfq/emacs-24.2.92/lib-src/make-docfile.c:247:0,
>                  from /home/xfq/emacs-24.2.92/lib-src/make-docfile.c:640,
>                  from :20:
> /home/xfq/emacs-24.2.92/lib-src/make-docfile.c:627:19: note: ‘type’ was declared here

Your compiler isn't smart enough to see that the variable type is always
initialized before use.  But emacs shouldn't use -Wmaybe-uninitialized
anyway, since that triggers a lot of spurious warnings in various
compilers.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."