#105 GCC version 4 fix

closed-out-of-date
nobody
None
5
2005-12-15
2005-07-09
No

As of version 4, GCC no longer supports the feature
named "cast-as-lvalue" (see
http://gcc.gnu.org/gcc-4.0/changes.html - "C and
Objective-C", 2nd paragraph).

That means that a statement like :

((char*) p) += HEADER_RESERVEDOFFSET;

(in btree.c, line 399)
is no longer valid.

Three files in PearPc use such statements :
/src/io/prom/fs/hfsplus/swab.h
/src/io/prom/fs/hfsplus/btree.c
/src/io/prom/fs/hfsplus/volume.c

Particularly, almost all macros defined in swab.h are
defined using that feature.

This patch makes the necessary modifications for fixing
this problem, and allows PearPC to be compiled using
GCC version 4 (and, hopefully, above).

Gingko

Discussion

  • Anonymous - 2005-07-22

    Logged In: YES
    user_id=512471

    This problem have just been fixed in the CVS, so this patch
    is no longer needed for the CVS compilation.

    Gingko

     
  • Anonymous - 2005-08-26

    Logged In: YES
    user_id=512471

    Patch deleted.

    Gingko

     
  • Sebastian Biallas

    • status: open --> closed-out-of-date
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks