Skip to content

Conversation

@jackgerrits
Copy link
Member

No description provided.

};

inline bool example_is_test(polylabel& l) { return l.cs.costs.size() == 0; }
inline bool example_is_test(polylabel* l) { return l->cs.costs.size() == 0; }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just curious what was the warning here?

Copy link
Member Author

@jackgerrits jackgerrits Sep 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The warning originated where we were reinterpret casting this from from polylabel& to polylabel*

This line:

this->priv->all->example_parser->lbl_parser.test_label = reinterpret_cast<bool (*)(polylabel*)>(is_test);

So this was a flow on from that

@jackgerrits jackgerrits merged commit 0f09b9a into VowpalWabbit:master Sep 1, 2021
@jackgerrits jackgerrits deleted the jagerrit/more_warnings branch September 1, 2021 22:14
lalo pushed a commit to lalo/vowpal_wabbit that referenced this pull request Sep 2, 2021
* fix: resolve more gcc warnings

* For some reason vector resize was not initializing the added values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants