mutt/2063: mutt fails to compile with gcc 4.x
>Number: 2063
>Notify-List:
>Category: mutt
>Synopsis: mutt fails to compile with gcc 4.x
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: mutt-dev
>State: open
>Keywords:
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Sep 10 17:31:59 +0200 2005
>Originator: satadru@xxxxxxxxx
>Release:
>Organization:
>Environment:
OS X 10.4.2, Xcode 2.x, gcc 4.x
>Description:
This is because of the gcc-4.0 included with xcode 2.1. Read the discussion at:
http://gcc.gnu.org/ml/gcc/2005-02/msg00054.html
To solve the problem change the declaration at keymap.h:83 from:
extern struct mapping_t Menus[];
to
extern struct mapping_t *Menus;
You will also have to make a similar change at keymap.c:31
>How-To-Repeat:
http://bugzilla.opendarwin.org/show_bug.cgi?id=4297
>Fix:
To solve the problem change the declaration at keymap.h:83 from:
extern struct mapping_t Menus[];
to
extern struct mapping_t *Menus;
You will also have to make a similar change at keymap.c:31
>Add-To-Audit-Trail:
>Unformatted: