Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#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

    • status: open --> closed
     
  • 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.