[AD] [ alleg-Patches-1729552 ] Fix DJGPP GCC 4.1.2 compilation warnings in Allegro 4.2.1

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Patches item #1729552, was opened at 2007-06-01 18:06
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305665&aid=1729552&group_id=5665

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: DOS
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Robert Riebisch (bttr)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix DJGPP GCC 4.1.2 compilation warnings in Allegro 4.2.1

Initial Comment:
Using WARNMODE=1 with GCC 4.1.2 gives many warnings like:

src/dos/vesa.c:169: warning: 'packed' attribute ignored for field of type 'char[4]'
src/dos/vesa.c:172: warning: 'packed' attribute ignored for field of type 'unsigned char[4]'
src/dos/vesa.c:179: warning: 'packed' attribute ignored for field of type 'unsigned char[222]'
...

This patch removes unnecessary `packed' attributes from files `allegro/src/dos/vesa.c', `allegro/src/misc/vbeaf.c', `allegro/tests/afinfo.c', and `allegro/tests/vesainfo.c'.

As a short test I built `afinfo.exe' and `vesainfo.exe' and both worked fine for me. :-)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305665&aid=1729552&group_id=5665




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/