#2 Fix warning from -Wall

closed
nobody
None
5
2006-05-05
2006-05-04
Olex
No

When coming with GCC and -Wall enabled, there are
several warnings that come up.

The ones I saw in 0.6.0 release were:

1. #pragma warning
such lines are ignored by gcc, and this is reported as
a warning.

2. struct example{
example ( int aa, int bb ) : b(bb), a(aa) {}
int a, b;
}

This causes a warning since 'b' is initialized before
'a'. To fix this, you need to initiliza 'a' before 'b'.

Thanks.

Discussion

  • Phillip Castaneda

    • status: open --> closed
     
  • Phillip Castaneda

    Logged In: YES
    user_id=947604

    These warnings have been nailed.. There were some oter
    warnings (not sure if from wall or not - I turned on
    everything), and I fixed those too. This has been committed
    to cvs.

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks