#326 const: Warning: pointer to member of array

closed-fixed
nobody
2
2013-05-25
2002-04-13
No

int i[2];
int near * code i_array[]= {i + 0, &i[1]};

is legal C, but the 2nd initializer throws a warning:

>warning: Initializer different levels of indirections
>from type 'int [] near *'
>to type 'code const int near *'

Discussion

  • Johan Knol

    Johan Knol - 2003-05-09
    • summary: Warning: pointer to member of array --> const: Warning: pointer to member of array
     
  • Maarten Brock

    Maarten Brock - 2004-05-05

    Logged In: YES
    user_id=888171

    I've submitted a patch in the patches section.

    Greets,
    Maarten

     
  • Erik Petrich

    Erik Petrich - 2004-05-22

    Logged In: YES
    user_id=635249

    Fixed in src/SDCCval.c 1.91 by Maarten Brock's patch #947682

     
  • Erik Petrich

    Erik Petrich - 2004-05-22
    • milestone: --> fixed
    • status: open --> closed-fixed
     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks