-
Notifications
You must be signed in to change notification settings - Fork 15
HYRAX-2000 warnings in tests #333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
sawer297
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
approved
| */ | ||
| xdrproc_t XDRUtils::xdr_coder(const Type &t) { | ||
| switch (t) { | ||
| A_cast_function_type_mismatch switch (t) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found "A_cast_function_type_mismatch" is defined at diagnostic_supporession.h
as ```
#define A_cast_function_type_mismatch
It is not obvious what it is doing. Could you add a comment to explain what it is doing or point to diagnostic_suppression.h for further reference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. I'll do that.
| } | ||
|
|
||
| return NULL; | ||
| A_Pop return nullptr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as the above for A_pop.
| BaseType *bt = fs.var("fsab"); | ||
| CPPUNIT_ASSERT(bt); | ||
| Array *fsarr_p = dynamic_cast<Array *>(bt); | ||
| auto *fsarr_p = dynamic_cast<Array *>(bt); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why here it is auto * but in line 984, it is auto?
| CPPUNIT_ASSERT(ui16_p); | ||
| CPPUNIT_ASSERT(ui16_p->value() == ui16->value()); | ||
| Url *url_p = dynamic_cast<Url *>((*row_sub)[1]); | ||
| auto *url_p = dynamic_cast<Url *>((*row_sub)[1]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still don't understand why not using" auto" rather than "auto *".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, maybe I should clean that up. It would be more consistent. Either is correct syntax and they mean the same thing, but for consistency, it would be better to always use one syntax.



I fixed a number of warning in the libdap4 repo's code.