#3926: hg tip (default): Type mismatches
---------------------+----------------------
Reporter: m-a | Owner: mutt-dev
Type: defect | Status: new
Priority: trivial | Milestone: 1.8
Component: mutt | Version:
Keywords: |
---------------------+----------------------
Compiling with GCC 5.4.0 on Ubuntu 16.04 amd64 with link-time optimization
(*) reveals a few type mismatches between implementation and declaration:
{{{
gcc -Wall -pedantic -Wno-long-long -O3 -flto -o mutt addrbook.o alias.o
attach.o base64.o browser.o buffy.o color.o crypt.o cryptglue.o commands.o
complete.o compose.o copy.o curs_lib.o curs_main.o date.o edit.o enter.o
flags.o init.o filter.o from.o getdomain.o group.o handler.o hash.o
hdrline.o headers.o help.o hook.o keymap.o main.o mbox.o menu.o mh.o mx.o
pager.o parse.o pattern.o postpone.o query.o recvattach.o recvcmd.o
rfc822.o rfc1524.o rfc2047.o rfc2231.o rfc3676.o score.o send.o sendlib.o
signal.o sort.o status.o system.o thread.o charset.o history.o lib.o
muttlib.o editmsg.o mbyte.o url.o ascii.o crypt-mod.o safe_asprintf.o
patchlist.o conststrings.o pgp.o pgpinvoke.o pgpkey.o pgplib.o
gnupgparse.o pgpmicalg.o pgppacket.o crypt-mod-pgp-classic.o smime.o
crypt-mod-smime-classic.o resize.o bcache.o account.o mutt_socket.o
mutt_tunnel.o mutt_ssl.o mutt_sasl.o hcache.o md5.o mutt_idna.o -Limap
-limap -lncursesw -ltinfo -lssl -lcrypto -lz -lsasl2 -ltokyocabinet -lidn
../main.c:167:19: warning: type of ‘cc_cflags’ does not match original
declaration
extern const char cc_cflags[];
^
conststrings.c:123:15: note: previously declared here
unsigned char cc_cflags[] = {
^
../main.c:168:19: warning: type of ‘configure_options’ does not match
original declaration
extern const char configure_options[];
^
conststrings.c:130:15: note: previously declared here
unsigned char configure_options[] = {
^
../main.c:166:19: warning: type of ‘cc_version’ does not match original
declaration
extern const char cc_version[];
^
conststrings.c:1:15: note: previously declared here
unsigned char cc_version[] = {
^
}}}
(*) I am using {{{../configure -C AR=gcc-ar RANLIB=gcc-ranlib CFLAGS="-O3
-flto" '--with-sasl' '--enable-hcache' '--enable-imap' '--with-ssl'
'--enable-debug'}}} where the AR/RANLIB are crucial to get the LTO plugin
hoisted into ar/ranlib (respectively) for the imap/* stuff, and -flto
enables link-time optimization. It prolongs compilation time somewhat
because it's not as good parallelized...
--
Ticket URL: <https://dev.mutt.org/trac/ticket/3926>
Mutt <http://www.mutt.org/>
The Mutt mail user agent