diff options
author | Robin Gareus <robin@gareus.org> | 2014-10-23 03:32:14 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-10-23 03:43:04 +0200 |
commit | c6a3d6bc48ea766a55d0b848d7bff16daa013b41 (patch) | |
tree | b1255e14d3b42220582935f06e7c9846c4f6d535 /gtk2_ardour | |
parent | e2c6eb0ba1948fa5b39216618f8e8d9fdbad30b0 (diff) |
small round of compiler warning fixes
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 4 | ||||
-rw-r--r-- | gtk2_ardour/editor_routes.cc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 4141bd720b..3b385ef292 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -3601,13 +3601,13 @@ ARDOUR_UI::start_video_server (Gtk::Window* float_window, bool popup_msg) continue; } #ifndef PLATFORM_WINDOWS - if ( (!g_lstat (icsd_exec.c_str(), &sb) == 0) + if ( (g_lstat (icsd_exec.c_str(), &sb) != 0) || (sb.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH)) == 0 ) { warning << _("Given Video Server is not an executable file.") << endmsg; continue; } #else - if ( (!g_lstat (icsd_exec.c_str(), &sb) == 0) + if ( (g_lstat (icsd_exec.c_str(), &sb) != 0) || (sb.st_mode & (S_IXUSR)) == 0 ) { warning << _("Given Video Server is not an executable file.") << endmsg; continue; diff --git a/gtk2_ardour/editor_routes.cc b/gtk2_ardour/editor_routes.cc index e066e721fe..10b1cc894d 100644 --- a/gtk2_ardour/editor_routes.cc +++ b/gtk2_ardour/editor_routes.cc @@ -810,7 +810,7 @@ EditorRoutes::update_visibility () TreeModel::Children rows = _model->children(); TreeModel::Children::iterator i; - DisplaySuspender ds (); + DisplaySuspender ds; for (i = rows.begin(); i != rows.end(); ++i) { TimeAxisView *tv = (*i)[_columns.tv]; |