Menu

#7 some messiness in include files.

open
nobody
tests (4)
5
2009-10-15
2009-10-15
No

When compiling a C program against the RBC source, one gets this:

rbc/generic/rbcVector.h:91: warning: redundant redeclaration of ‘rbcNaN’
rbc/generic/rbcMath.h:152: warning: previous declaration of ‘rbcNaN’ was here
rbc/generic/rbcVector.h:340: warning: redundant redeclaration of ‘Rbc_VectorReset’
rbc/generic/rbcVector.h:324: warning: previous declaration of ‘Rbc_VectorReset’ was here
rbc/generic/rbcVector.h:364: warning: redundant redeclaration of ‘drand48’
/usr/include/stdlib.h:395: warning: previous declaration of ‘drand48’ was here

The redeclaration of drand48 is not conditional on some system config probe. It is just there.
There is also a Rbc_ResetVector as well as Rbc_VectorReset.

In the bug report form, perhaps you need a category for the C API? I put this under tests. Even though is is not part of the test suite...

Discussion