#3926: hg tip (default): Type mismatches
----------------------+----------------------
Reporter: m-a | Owner: mutt-dev
Type: defect | Status: closed
Priority: trivial | Milestone: 1.8
Component: mutt | Version:
Resolution: fixed | Keywords:
----------------------+----------------------
Changes (by Kevin McCarthy <kevin@…>):
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"f09b8b2454c96f299f465134b37e67aa1261722d"
6970:f09b8b2454c9]:
{{{
#!CommitTicketReference repository=""
revision="f09b8b2454c96f299f465134b37e67aa1261722d"
Fix conststrings type mismatches. (closes #3926)
The generation programs for conststrings.c: txt2c.c and txt2c.sh,
specified the resultant types as "unsigned char[]" while main.c
declared them as "const char[]".
txt2.c generates 0xXX hex codes for each individual character, thus
the "unsigned" definition. With link-time optimization, some versions
of gcc notice the mismatch and emit a warning.
Change the declarations to match the definitions and cast to char[]
when they are used.
}}}
--
Ticket URL: <https://dev.mutt.org/trac/ticket/3926#comment:3>
Mutt <http://www.mutt.org/>
The Mutt mail user agent