diff options
author | David Robillard <d@drobilla.net> | 2020-08-01 15:49:26 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-02 01:48:48 +0200 |
commit | 97dc2836a62625656a2af0e8def015ea0c322046 (patch) | |
tree | 5a6e32bc67f93876eeadb36b77ccd45976a3c354 | |
parent | 483ecd16de6801aed536eca64ed51a6a4c669e39 (diff) | |
download | ingen-97dc2836a62625656a2af0e8def015ea0c322046.tar.gz ingen-97dc2836a62625656a2af0e8def015ea0c322046.tar.bz2 ingen-97dc2836a62625656a2af0e8def015ea0c322046.zip |
Fix uninitialized members
-rw-r--r-- | .clang-tidy | 2 | ||||
-rw-r--r-- | ingen/Atom.hpp | 14 | ||||
-rw-r--r-- | ingen/AtomForge.hpp | 3 | ||||
-rw-r--r-- | ingen/Clock.hpp | 2 | ||||
-rw-r--r-- | ingen/URIMap.hpp | 5 | ||||
-rw-r--r-- | ingen/filesystem.hpp | 2 | ||||
-rw-r--r-- | src/gui/App.cpp | 25 | ||||
-rw-r--r-- | src/gui/App.hpp | 10 | ||||
-rw-r--r-- | src/gui/ConnectWindow.cpp | 2 | ||||
-rw-r--r-- | src/gui/GraphBox.hpp | 88 | ||||
-rw-r--r-- | src/gui/GraphCanvas.cpp | 6 | ||||
-rw-r--r-- | src/gui/GraphCanvas.hpp | 40 | ||||
-rw-r--r-- | src/gui/GraphTreeWindow.cpp | 1 | ||||
-rw-r--r-- | src/gui/GraphView.cpp | 3 | ||||
-rw-r--r-- | src/gui/GraphView.hpp | 14 | ||||
-rw-r--r-- | src/gui/LoadGraphWindow.cpp | 2 | ||||
-rw-r--r-- | src/gui/LoadGraphWindow.hpp | 28 | ||||
-rw-r--r-- | src/gui/LoadPluginWindow.cpp | 3 | ||||
-rw-r--r-- | src/gui/LoadPluginWindow.hpp | 22 | ||||
-rw-r--r-- | src/server/FrameTimer.hpp | 14 | ||||
-rw-r--r-- | src/server/JackDriver.cpp | 3 | ||||
-rw-r--r-- | src/server/LV2Options.hpp | 6 | ||||
-rw-r--r-- | src/server/PortAudioDriver.cpp | 2 | ||||
-rw-r--r-- | src/server/ingen_lv2.cpp | 1 |
24 files changed, 144 insertions, 154 deletions
diff --git a/.clang-tidy b/.clang-tidy index c9a4cb1b..e535a880 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -34,7 +34,6 @@ Checks: > -cppcoreguidelines-pro-bounds-pointer-arithmetic, -cppcoreguidelines-pro-type-const-cast, -cppcoreguidelines-pro-type-cstyle-cast, - -cppcoreguidelines-pro-type-member-init, -cppcoreguidelines-pro-type-reinterpret-cast, -cppcoreguidelines-pro-type-static-cast-downcast, -cppcoreguidelines-pro-type-union-access, @@ -48,7 +47,6 @@ Checks: > -google-runtime-int, -google-runtime-references, -hicpp-explicit-conversions, - -hicpp-member-init, -hicpp-multiway-paths-covered, -hicpp-no-array-decay, -hicpp-no-malloc, diff --git a/ingen/Atom.hpp b/ingen/Atom.hpp index c4020b91..e92ab194 100644 --- a/ingen/Atom.hpp +++ b/ingen/Atom.hpp @@ -43,17 +43,18 @@ namespace ingen { */ class INGEN_API Atom { public: - Atom() noexcept { _atom.size = 0; _atom.type = 0; _body.ptr = nullptr; } + Atom() noexcept : _atom{0, 0}, _body{} {} + ~Atom() { dealloc(); } /** Construct a raw atom. * * Typically this is not used directly, use Forge methods to make atoms. */ - Atom(uint32_t size, LV2_URID type, const void* body) { - _atom.size = size; - _atom.type = type; - _body.ptr = nullptr; + Atom(uint32_t size, LV2_URID type, const void* body) + : _atom{size, type} + , _body{} + { if (is_reference()) { _body.ptr = static_cast<LV2_Atom*>(malloc(sizeof(LV2_Atom) + size)); memcpy(_body.ptr, &_atom, sizeof(LV2_Atom)); @@ -64,7 +65,8 @@ public: } Atom(const Atom& copy) - : _atom(copy._atom) + : _atom{copy._atom} + , _body{} { if (is_reference()) { _body.ptr = diff --git a/ingen/AtomForge.hpp b/ingen/AtomForge.hpp index 10517894..b1cec69d 100644 --- a/ingen/AtomForge.hpp +++ b/ingen/AtomForge.hpp @@ -36,7 +36,8 @@ class AtomForge : public LV2_Atom_Forge { public: explicit AtomForge(LV2_URID_Map& map) - : _size{0} + : LV2_Atom_Forge{} + , _size{0} , _capacity{8 * sizeof(LV2_Atom)} , _sratom{sratom_new(&map)} , _buf{static_cast<LV2_Atom*>(calloc(8, sizeof(LV2_Atom)))} diff --git a/ingen/Clock.hpp b/ingen/Clock.hpp index 5debb5e4..27d8443d 100644 --- a/ingen/Clock.hpp +++ b/ingen/Clock.hpp @@ -46,7 +46,7 @@ private: #else inline uint64_t now_microseconds() const { - struct timespec time; + struct timespec time{}; clock_gettime(_clock, &time); return static_cast<uint64_t>(time.tv_sec) * 1e6 + static_cast<uint64_t>(time.tv_nsec) / 1e3; diff --git a/ingen/URIMap.hpp b/ingen/URIMap.hpp index db10241f..5b211612 100644 --- a/ingen/URIMap.hpp +++ b/ingen/URIMap.hpp @@ -49,10 +49,7 @@ public: class Feature : public LV2Features::Feature { public: - Feature(const char* URI, void* data) { - _feature.URI = URI; - _feature.data = data; - } + Feature(const char* URI, void* data) : _feature{URI, data} {} const char* uri() const override { return _feature.URI; } diff --git a/ingen/filesystem.hpp b/ingen/filesystem.hpp index 3b2bc302..44b9148e 100644 --- a/ingen/filesystem.hpp +++ b/ingen/filesystem.hpp @@ -49,7 +49,7 @@ inline bool exists(const FilePath& path) inline bool is_directory(const FilePath& path) { - struct stat info; + struct stat info{}; stat(path.c_str(), &info); return S_ISDIR(info.st_mode); } diff --git a/src/gui/App.cpp b/src/gui/App.cpp index dc8f605a..e62a35e2 100644 --- a/src/gui/App.cpp +++ b/src/gui/App.cpp @@ -73,19 +73,18 @@ class Port; Gtk::Main* App::_main = nullptr; App::App(ingen::World& world) - : _style(new Style(*this)) - , _about_dialog(nullptr) - , _window_factory(new WindowFactory(*this)) - , _world(world) - , _sample_rate(48000) - , _block_length(1024) - , _n_threads(1) - , _mean_run_load(0.0f) - , _min_run_load(0.0f) - , _max_run_load(0.0f) - , _enable_signal(true) - , _requested_plugins(false) - , _is_plugin(false) + : _style(new Style(*this)) + , _window_factory(new WindowFactory(*this)) + , _world(world) + , _sample_rate(48000) + , _block_length(1024) + , _n_threads(1) + , _mean_run_load(0.0f) + , _min_run_load(0.0f) + , _max_run_load(0.0f) + , _enable_signal(true) + , _requested_plugins(false) + , _is_plugin(false) { _world.conf().load_default("ingen", "gui.ttl"); diff --git a/src/gui/App.hpp b/src/gui/App.hpp index 3149f169..74e880d2 100644 --- a/src/gui/App.hpp +++ b/src/gui/App.hpp @@ -166,11 +166,11 @@ protected: Style* _style; - ConnectWindow* _connect_window; - MessagesWindow* _messages_window; - GraphTreeWindow* _graph_tree_window; - Gtk::AboutDialog* _about_dialog; - WindowFactory* _window_factory; + ConnectWindow* _connect_window = nullptr; + MessagesWindow* _messages_window = nullptr; + GraphTreeWindow* _graph_tree_window = nullptr; + Gtk::AboutDialog* _about_dialog = nullptr; + WindowFactory* _window_factory = nullptr; ingen::World& _world; diff --git a/src/gui/ConnectWindow.cpp b/src/gui/ConnectWindow.cpp index fc9e7cab..65cb1c7d 100644 --- a/src/gui/ConnectWindow.cpp +++ b/src/gui/ConnectWindow.cpp @@ -463,7 +463,7 @@ ConnectWindow::gtk_callback() } // Timing stuff for repeated attach attempts - timeval now; + timeval now = {}; gettimeofday(&now, nullptr); static const timeval start = now; static timeval last = now; diff --git a/src/gui/GraphBox.hpp b/src/gui/GraphBox.hpp index e1f602b7..3a1049cd 100644 --- a/src/gui/GraphBox.hpp +++ b/src/gui/GraphBox.hpp @@ -153,50 +153,50 @@ private: sigc::connection removed_port_connection; sigc::connection edit_mode_connection; - Gtk::MenuItem* _menu_import; - Gtk::MenuItem* _menu_save; - Gtk::MenuItem* _menu_save_as; - Gtk::MenuItem* _menu_export_image; - Gtk::MenuItem* _menu_redo; - Gtk::MenuItem* _menu_undo; - Gtk::MenuItem* _menu_cut; - Gtk::MenuItem* _menu_copy; - Gtk::MenuItem* _menu_paste; - Gtk::MenuItem* _menu_delete; - Gtk::MenuItem* _menu_select_all; - Gtk::MenuItem* _menu_close; - Gtk::MenuItem* _menu_quit; - Gtk::CheckMenuItem* _menu_animate_signals; - Gtk::CheckMenuItem* _menu_sprung_layout; - Gtk::CheckMenuItem* _menu_human_names; - Gtk::CheckMenuItem* _menu_show_port_names; - Gtk::CheckMenuItem* _menu_show_doc_pane; - Gtk::CheckMenuItem* _menu_show_status_bar; - Gtk::MenuItem* _menu_zoom_in; - Gtk::MenuItem* _menu_zoom_out; - Gtk::MenuItem* _menu_zoom_normal; - Gtk::MenuItem* _menu_zoom_full; - Gtk::MenuItem* _menu_increase_font_size; - Gtk::MenuItem* _menu_decrease_font_size; - Gtk::MenuItem* _menu_normal_font_size; - Gtk::MenuItem* _menu_parent; - Gtk::MenuItem* _menu_refresh; - Gtk::MenuItem* _menu_fullscreen; - Gtk::MenuItem* _menu_arrange; - Gtk::MenuItem* _menu_view_engine_window; - Gtk::MenuItem* _menu_view_control_window; - Gtk::MenuItem* _menu_view_graph_properties; - Gtk::MenuItem* _menu_view_messages_window; - Gtk::MenuItem* _menu_view_graph_tree_window; - Gtk::MenuItem* _menu_help_about; - - Gtk::Alignment* _alignment; - BreadCrumbs* _breadcrumbs; - Gtk::Statusbar* _status_bar; - Gtk::Label* _status_label; - - Gtk::HPaned* _doc_paned; - Gtk::ScrolledWindow* _doc_scrolledwindow; + Gtk::MenuItem* _menu_import = nullptr; + Gtk::MenuItem* _menu_save = nullptr; + Gtk::MenuItem* _menu_save_as = nullptr; + Gtk::MenuItem* _menu_export_image = nullptr; + Gtk::MenuItem* _menu_redo = nullptr; + Gtk::MenuItem* _menu_undo = nullptr; + Gtk::MenuItem* _menu_cut = nullptr; + Gtk::MenuItem* _menu_copy = nullptr; + Gtk::MenuItem* _menu_paste = nullptr; + Gtk::MenuItem* _menu_delete = nullptr; + Gtk::MenuItem* _menu_select_all = nullptr; + Gtk::MenuItem* _menu_close = nullptr; + Gtk::MenuItem* _menu_quit = nullptr; + Gtk::CheckMenuItem* _menu_animate_signals = nullptr; + Gtk::CheckMenuItem* _menu_sprung_layout = nullptr; + Gtk::CheckMenuItem* _menu_human_names = nullptr; + Gtk::CheckMenuItem* _menu_show_port_names = nullptr; + Gtk::CheckMenuItem* _menu_show_doc_pane = nullptr; + Gtk::CheckMenuItem* _menu_show_status_bar = nullptr; + Gtk::MenuItem* _menu_zoom_in = nullptr; + Gtk::MenuItem* _menu_zoom_out = nullptr; + Gtk::MenuItem* _menu_zoom_normal = nullptr; + Gtk::MenuItem* _menu_zoom_full = nullptr; + Gtk::MenuItem* _menu_increase_font_size = nullptr; + Gtk::MenuItem* _menu_decrease_font_size = nullptr; + Gtk::MenuItem* _menu_normal_font_size = nullptr; + Gtk::MenuItem* _menu_parent = nullptr; + Gtk::MenuItem* _menu_refresh = nullptr; + Gtk::MenuItem* _menu_fullscreen = nullptr; + Gtk::MenuItem* _menu_arrange = nullptr; + Gtk::MenuItem* _menu_view_engine_window = nullptr; + Gtk::MenuItem* _menu_view_control_window = nullptr; + Gtk::MenuItem* _menu_view_graph_properties = nullptr; + Gtk::MenuItem* _menu_view_messages_window = nullptr; + Gtk::MenuItem* _menu_view_graph_tree_window = nullptr; + Gtk::MenuItem* _menu_help_about = nullptr; + + Gtk::Alignment* _alignment = nullptr; + BreadCrumbs* _breadcrumbs = nullptr; + Gtk::Statusbar* _status_bar = nullptr; + Gtk::Label* _status_label = nullptr; + + Gtk::HPaned* _doc_paned = nullptr; + Gtk::ScrolledWindow* _doc_scrolledwindow = nullptr; sigc::connection _entered_connection; sigc::connection _left_connection; diff --git a/src/gui/GraphCanvas.cpp b/src/gui/GraphCanvas.cpp index 969c3849..18fd1a39 100644 --- a/src/gui/GraphCanvas.cpp +++ b/src/gui/GraphCanvas.cpp @@ -84,12 +84,6 @@ GraphCanvas::GraphCanvas(App& app, , _menu_x(0) , _menu_y(0) , _paste_count(0) - , _menu(nullptr) - , _internal_menu(nullptr) - , _plugin_menu(nullptr) - , _human_names(true) - , _show_port_names(true) - , _menu_dirty(false) { Glib::RefPtr<Gtk::Builder> xml = WidgetFactory::create("canvas_menu"); xml->get_widget("canvas_menu", _menu); diff --git a/src/gui/GraphCanvas.hpp b/src/gui/GraphCanvas.hpp index 5b379ec7..ed43b970 100644 --- a/src/gui/GraphCanvas.hpp +++ b/src/gui/GraphCanvas.hpp @@ -130,26 +130,26 @@ private: // Track pasted objects so they can be selected when they arrive std::set<Raul::Path> _pastees; - Gtk::Menu* _menu; - Gtk::Menu* _internal_menu; - PluginMenu* _plugin_menu; - Gtk::MenuItem* _menu_add_audio_input; - Gtk::MenuItem* _menu_add_audio_output; - Gtk::MenuItem* _menu_add_control_input; - Gtk::MenuItem* _menu_add_control_output; - Gtk::MenuItem* _menu_add_cv_input; - Gtk::MenuItem* _menu_add_cv_output; - Gtk::MenuItem* _menu_add_event_input; - Gtk::MenuItem* _menu_add_event_output; - Gtk::MenuItem* _menu_load_plugin; - Gtk::MenuItem* _menu_load_graph; - Gtk::MenuItem* _menu_new_graph; - Gtk::MenuItem* _menu_properties; - Gtk::CheckMenuItem* _menu_edit; - - bool _human_names; - bool _show_port_names; - bool _menu_dirty; + Gtk::Menu* _menu = nullptr; + Gtk::Menu* _internal_menu = nullptr; + PluginMenu* _plugin_menu = nullptr; + Gtk::MenuItem* _menu_add_audio_input = nullptr; + Gtk::MenuItem* _menu_add_audio_output = nullptr; + Gtk::MenuItem* _menu_add_control_input = nullptr; + Gtk::MenuItem* _menu_add_control_output = nullptr; + Gtk::MenuItem* _menu_add_cv_input = nullptr; + Gtk::MenuItem* _menu_add_cv_output = nullptr; + Gtk::MenuItem* _menu_add_event_input = nullptr; + Gtk::MenuItem* _menu_add_event_output = nullptr; + Gtk::MenuItem* _menu_load_plugin = nullptr; + Gtk::MenuItem* _menu_load_graph = nullptr; + Gtk::MenuItem* _menu_new_graph = nullptr; + Gtk::MenuItem* _menu_properties = nullptr; + Gtk::CheckMenuItem* _menu_edit = nullptr; + + bool _human_names = true; + bool _show_port_names = true; + bool _menu_dirty = false; }; } // namespace gui diff --git a/src/gui/GraphTreeWindow.cpp b/src/gui/GraphTreeWindow.cpp index f3d77c76..2179c964 100644 --- a/src/gui/GraphTreeWindow.cpp +++ b/src/gui/GraphTreeWindow.cpp @@ -33,6 +33,7 @@ namespace gui { GraphTreeWindow::GraphTreeWindow(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>& xml) : Window(cobject) + , _graphs_treeview(nullptr) , _app(nullptr) , _enable_signal(true) { diff --git a/src/gui/GraphView.cpp b/src/gui/GraphView.cpp index e25fa1ba..a4bc1400 100644 --- a/src/gui/GraphView.cpp +++ b/src/gui/GraphView.cpp @@ -37,9 +37,6 @@ namespace gui { GraphView::GraphView(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>& xml) : Gtk::Box(cobject) - , _app(nullptr) - , _breadcrumb_container(nullptr) - , _enable_signal(true) { property_visible() = false; diff --git a/src/gui/GraphView.hpp b/src/gui/GraphView.hpp index 457a5f76..d10700eb 100644 --- a/src/gui/GraphView.hpp +++ b/src/gui/GraphView.hpp @@ -81,18 +81,18 @@ private: void property_changed(const URI& predicate, const Atom& value); - App* _app; + App* _app = nullptr; SPtr<const client::GraphModel> _graph; SPtr<GraphCanvas> _canvas; - Gtk::ScrolledWindow* _canvas_scrolledwindow; - Gtk::Toolbar* _toolbar; - Gtk::ToggleToolButton* _process_but; - Gtk::SpinButton* _poly_spin; - Gtk::ToolItem* _breadcrumb_container; + Gtk::ScrolledWindow* _canvas_scrolledwindow = nullptr; + Gtk::Toolbar* _toolbar = nullptr; + Gtk::ToggleToolButton* _process_but = nullptr; + Gtk::SpinButton* _poly_spin = nullptr; + Gtk::ToolItem* _breadcrumb_container = nullptr; - bool _enable_signal; + bool _enable_signal = true; }; } // namespace gui diff --git a/src/gui/LoadGraphWindow.cpp b/src/gui/LoadGraphWindow.cpp index cb1d4de9..d1b2cfd9 100644 --- a/src/gui/LoadGraphWindow.cpp +++ b/src/gui/LoadGraphWindow.cpp @@ -45,8 +45,6 @@ namespace gui { LoadGraphWindow::LoadGraphWindow(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>& xml) : Gtk::FileChooserDialog(cobject) - , _app(nullptr) - , _merge_ports(false) { xml->get_widget("load_graph_symbol_label", _symbol_label); xml->get_widget("load_graph_symbol_entry", _symbol_entry); diff --git a/src/gui/LoadGraphWindow.hpp b/src/gui/LoadGraphWindow.hpp index a2217d83..03b96f72 100644 --- a/src/gui/LoadGraphWindow.hpp +++ b/src/gui/LoadGraphWindow.hpp @@ -70,25 +70,25 @@ private: Raul::Symbol symbol_from_filename(const Glib::ustring& filename); Raul::Symbol avoid_symbol_clash(const Raul::Symbol& symbol); - App* _app; + App* _app = nullptr; Properties _initial_data; SPtr<const client::GraphModel> _graph; - Gtk::Label* _symbol_label; - Gtk::Entry* _symbol_entry; - Gtk::Label* _ports_label; - Gtk::RadioButton* _merge_ports_radio; - Gtk::RadioButton* _insert_ports_radio; - Gtk::RadioButton* _poly_voices_radio; - Gtk::RadioButton* _poly_from_file_radio; - Gtk::SpinButton* _poly_spinbutton; - Gtk::Button* _ok_button; - Gtk::Button* _cancel_button; - - bool _import; - bool _merge_ports; + Gtk::Label* _symbol_label = nullptr; + Gtk::Entry* _symbol_entry = nullptr; + Gtk::Label* _ports_label = nullptr; + Gtk::RadioButton* _merge_ports_radio = nullptr; + Gtk::RadioButton* _insert_ports_radio = nullptr; + Gtk::RadioButton* _poly_voices_radio = nullptr; + Gtk::RadioButton* _poly_from_file_radio = nullptr; + Gtk::SpinButton* _poly_spinbutton = nullptr; + Gtk::Button* _ok_button = nullptr; + Gtk::Button* _cancel_button = nullptr; + + bool _import = false; + bool _merge_ports = false; }; } // namespace gui diff --git a/src/gui/LoadPluginWindow.cpp b/src/gui/LoadPluginWindow.cpp index acc34842..737db840 100644 --- a/src/gui/LoadPluginWindow.cpp +++ b/src/gui/LoadPluginWindow.cpp @@ -41,9 +41,6 @@ namespace gui { LoadPluginWindow::LoadPluginWindow(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>& xml) : Window(cobject) - , _name_offset(0) - , _has_shown(false) - , _refresh_list(true) { xml->get_widget("load_plugin_plugins_treeview", _plugins_treeview); xml->get_widget("load_plugin_polyphonic_checkbutton", _polyphonic_checkbutton); diff --git a/src/gui/LoadPluginWindow.hpp b/src/gui/LoadPluginWindow.hpp index 78c52eba..afbe110a 100644 --- a/src/gui/LoadPluginWindow.hpp +++ b/src/gui/LoadPluginWindow.hpp @@ -143,17 +143,17 @@ private: Glib::RefPtr<Gtk::TreeSelection> _selection; - int _name_offset; // see comments for generate_plugin_name - - bool _has_shown; - bool _refresh_list; - Gtk::TreeView* _plugins_treeview; - Gtk::CheckButton* _polyphonic_checkbutton; - Gtk::Entry* _name_entry; - Gtk::Button* _close_button; - Gtk::Button* _add_button; - Gtk::ComboBox* _filter_combo; - Gtk::Entry* _search_entry; + int _name_offset = 0; // see comments for generate_plugin_name + + bool _has_shown = false; + bool _refresh_list = true; + Gtk::TreeView* _plugins_treeview = nullptr; + Gtk::CheckButton* _polyphonic_checkbutton = nullptr; + Gtk::Entry* _name_entry = nullptr; + Gtk::Button* _close_button = nullptr; + Gtk::Button* _add_button = nullptr; + Gtk::ComboBox* _filter_combo = nullptr; + Gtk::Entry* _search_entry = nullptr; }; } // namespace gui diff --git a/src/server/FrameTimer.hpp b/src/server/FrameTimer.hpp index 344ed201..d4ab91f1 100644 --- a/src/server/FrameTimer.hpp +++ b/src/server/FrameTimer.hpp @@ -97,13 +97,13 @@ private: const double b; const double c; - uint64_t nper; - double e2; - double t0; - double t1; - uint64_t n0; - uint64_t n1; - bool initialized; + uint64_t nper = 0u; + double e2 = 0.0; + double t0 = 0.0; + double t1 = 0.0; + uint64_t n0 = 0u; + uint64_t n1 = 0u; + bool initialized = false; }; } // namespace server diff --git a/src/server/JackDriver.cpp b/src/server/JackDriver.cpp index d57b208a..852e23ae 100644 --- a/src/server/JackDriver.cpp +++ b/src/server/JackDriver.cpp @@ -61,6 +61,7 @@ namespace server { JackDriver::JackDriver(Engine& engine) : _engine(engine) + , _forge() , _sem(0) , _flag(false) , _client(nullptr) @@ -68,6 +69,8 @@ JackDriver::JackDriver(Engine& engine) , _seq_size(0) , _sample_rate(0) , _is_activated(false) + , _position() + , _transport_state() , _old_bpm(120.0f) , _old_frame(0) , _old_rolling(false) diff --git a/src/server/LV2Options.hpp b/src/server/LV2Options.hpp index 38082b8d..33f5781b 100644 --- a/src/server/LV2Options.hpp +++ b/src/server/LV2Options.hpp @@ -60,9 +60,9 @@ public: private: const URIs& _uris; - int32_t _sample_rate; - int32_t _block_length; - int32_t _seq_size; + int32_t _sample_rate = 0; + int32_t _block_length = 0; + int32_t _seq_size = 0; }; } // namespace server diff --git a/src/server/PortAudioDriver.cpp b/src/server/PortAudioDriver.cpp index 8d4a4c63..91ed73f7 100644 --- a/src/server/PortAudioDriver.cpp +++ b/src/server/PortAudioDriver.cpp @@ -45,6 +45,8 @@ pa_error(const char* msg, PaError err) PortAudioDriver::PortAudioDriver(Engine& engine) : _engine(engine) + , _inputParameters() + , _outputParameters() , _sem(0) , _stream(nullptr) , _seq_size(4096) diff --git a/src/server/ingen_lv2.cpp b/src/server/ingen_lv2.cpp index 2bf44762..03bebe80 100644 --- a/src/server/ingen_lv2.cpp +++ b/src/server/ingen_lv2.cpp @@ -822,6 +822,7 @@ ingen_extension_data(const char* uri) LV2Graph::LV2Graph(Parser::ResourceRecord record) : Parser::ResourceRecord(std::move(record)) + , descriptor() { descriptor.URI = uri.c_str(); descriptor.instantiate = ingen_instantiate; |