Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ target_compile_options(fdbdoc
-Werror
-Wno-error=format
-Wno-deprecated
# -Wreturn-type
-Wreturn-type
-fvisibility=hidden
-fno-omit-frame-pointer
)
Expand Down
3 changes: 3 additions & 0 deletions src/ConsoleMetric.actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ MetricStat& MetricStat::captureNewValue(int64_t val) {
sum += val;
avg = (double)sum / (double)count;
return *this;
default:
// Issue #16: Added default return statement to fix the warning during compilation
return *this;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/QLPlan.actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ Optional<Reference<Plan>> IndexScanPlan::push_down(Reference<UnboundCollectionCo
default:
return Optional<Reference<Plan>>();
}
} else {
return Optional<Reference<Plan>>();
}
// Issue #16: Added return statement in right place to fix the warning during compilation
return Optional<Reference<Plan>>();
}

ACTOR static Future<Void> doFilter(PlanCheckpoint* checkpoint,
Expand Down