Skip to content

Commit

Permalink
Compile fixes (#1713)
Browse files Browse the repository at this point in the history
* bump version# to 8.6.1

* fix last compile warnings
  • Loading branch information
JohnLangford authored Jan 17, 2019
1 parent b8ab396 commit 2e1602d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vowpalwabbit/allreduce.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class AllReduce

AllReduce(size_t ptotal, const size_t pnode)
: total(ptotal), node(pnode)
{ assert(node >= 0 && node < total);
{ assert(node < total);
}

virtual ~AllReduce()
Expand Down
2 changes: 1 addition & 1 deletion vowpalwabbit/noop.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ using namespace VW::config;

void learn(char&, LEARNER::base_learner&, example&) {}

LEARNER::base_learner* noop_setup(options_i& options, vw& all)
LEARNER::base_learner* noop_setup(options_i& options, vw&)
{
bool noop = false;
option_group_definition new_options("Noop Learner");
Expand Down
2 changes: 1 addition & 1 deletion vowpalwabbit/parse_args.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ void parse_output_preds(options_i& options, vw& all)
if (options.was_supplied("binary"))
all.trace_message << "Warning: --raw_predictions has no defined value when --binary specified, expect no output" << endl;
}
if (raw_predictions.c_str() == "stdout")
if (strcmp(raw_predictions.c_str(),"stdout")==0)
all.raw_prediction = 1; //stdout
else
{
Expand Down

0 comments on commit 2e1602d

Please sign in to comment.