Commit 78700b51 authored by Dominik Charousset's avatar Dominik Charousset

Fix uninitialized member warnings

parent b2df405a
...@@ -34,7 +34,7 @@ struct state { ...@@ -34,7 +34,7 @@ struct state {
int32_t line; int32_t line;
int32_t column; int32_t column;
state() : code(pec::success), line(1), column(1) { state() : i(), e(), code(pec::success), line(1), column(1) {
// nop // nop
} }
......
...@@ -40,6 +40,8 @@ public: ...@@ -40,6 +40,8 @@ public:
iterator(input_range* range) : xs_(range) { iterator(input_range* range) : xs_(range) {
if (xs_) if (xs_)
advance(); advance();
else
x_ = nullptr;
} }
iterator(const iterator&) = default; iterator(const iterator&) = default;
......
...@@ -62,7 +62,10 @@ public: ...@@ -62,7 +62,10 @@ public:
// -- constructors, destructors, and assignment operators ------------------- // -- constructors, destructors, and assignment operators -------------------
task_queue(policy_type p) : old_last_(nullptr), policy_(std::move(p)) { task_queue(policy_type p)
: old_last_(nullptr),
new_head_(nullptr),
policy_(std::move(p)) {
init(); init();
} }
......
...@@ -122,7 +122,9 @@ void actor_pool::enqueue(mailbox_element_ptr what, execution_unit* eu) { ...@@ -122,7 +122,9 @@ void actor_pool::enqueue(mailbox_element_ptr what, execution_unit* eu) {
policy_(home_system(), guard, workers_, what, eu); policy_(home_system(), guard, workers_, what, eu);
} }
actor_pool::actor_pool(actor_config& cfg) : monitorable_actor(cfg) { actor_pool::actor_pool(actor_config& cfg)
: monitorable_actor(cfg),
planned_reason_(exit_reason::normal) {
register_at_system(); register_at_system();
} }
......
...@@ -258,7 +258,7 @@ struct ini_iter { ...@@ -258,7 +258,7 @@ struct ini_iter {
ini->get(ch); ini->get(ch);
} }
ini_iter() : ini(nullptr) { ini_iter() : ini(nullptr), ch('\0') {
// nop // nop
} }
......
...@@ -22,7 +22,7 @@ namespace caf { ...@@ -22,7 +22,7 @@ namespace caf {
// -- constructors, destructors, and assignment operators -------------------- // -- constructors, destructors, and assignment operators --------------------
ipv4_subnet::ipv4_subnet() { ipv4_subnet::ipv4_subnet() : prefix_length_(0) {
// nop // nop
} }
......
...@@ -22,7 +22,7 @@ namespace caf { ...@@ -22,7 +22,7 @@ namespace caf {
// -- constructors, destructors, and assignment operators -------------------- // -- constructors, destructors, and assignment operators --------------------
ipv6_subnet::ipv6_subnet() { ipv6_subnet::ipv6_subnet() : prefix_length_(0) {
// nop // nop
} }
......
...@@ -39,6 +39,7 @@ namespace caf { ...@@ -39,6 +39,7 @@ namespace caf {
local_actor::local_actor(actor_config& cfg) local_actor::local_actor(actor_config& cfg)
: monitorable_actor(cfg), : monitorable_actor(cfg),
context_(cfg.host), context_(cfg.host),
current_element_(nullptr),
initial_behavior_fac_(std::move(cfg.init_fun)) { initial_behavior_fac_(std::move(cfg.init_fun)) {
// nop // nop
} }
......
...@@ -236,6 +236,7 @@ logger::~logger() { ...@@ -236,6 +236,7 @@ logger::~logger() {
logger::logger(actor_system& sys) logger::logger(actor_system& sys)
: system_(sys), : system_(sys),
level_(CAF_LOG_LEVEL),
flags_(0), flags_(0),
queue_(policy{}) { queue_(policy{}) {
// nop // nop
...@@ -275,7 +276,7 @@ void logger::init(actor_system_config& cfg) { ...@@ -275,7 +276,7 @@ void logger::init(actor_system_config& cfg) {
level_ = CAF_LOG_LEVEL_TRACE; level_ = CAF_LOG_LEVEL_TRACE;
break; break;
default: { default: {
level_ = CAF_LOG_LEVEL; // nop
} }
} }
// Parse the format string. // Parse the format string.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment