From fe63fa9e237255b2ee8c127c6930758e38fb616d Mon Sep 17 00:00:00 2001 From: JP Cimalando Date: Fri, 13 Jan 2017 14:01:48 +0100 Subject: [PATCH] fix warnings about mismatched class/struct tags --- src/calf/connector.h | 2 +- src/calf/gui.h | 4 ++-- src/calf/preset.h | 4 ++-- src/utils.cpp | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/calf/connector.h b/src/calf/connector.h index dde2b8d29..7086c6aeb 100644 --- a/src/calf/connector.h +++ b/src/calf/connector.h @@ -28,7 +28,7 @@ namespace calf_plugins { -class plugin_strip; +struct plugin_strip; class calf_connector; struct connector_port diff --git a/src/calf/gui.h b/src/calf/gui.h index 2488425bb..cd98593c5 100644 --- a/src/calf/gui.h +++ b/src/calf/gui.h @@ -212,8 +212,8 @@ class plugin_gui: public send_configure_iface, public send_updates_iface static void xml_element_end(void *data, const char *element); }; -class main_window_iface; -class main_window_owner_iface; +struct main_window_iface; +struct main_window_owner_iface; /// A class used to inform the plugin GUIs about the environment they run in /// (currently: what plugin features are accessible) diff --git a/src/calf/preset.h b/src/calf/preset.h index 56c60837e..711077338 100644 --- a/src/calf/preset.h +++ b/src/calf/preset.h @@ -27,8 +27,8 @@ namespace calf_plugins { -class plugin_ctl_iface; - +struct plugin_ctl_iface; + /// Contents of single preset struct plugin_preset { diff --git a/src/utils.cpp b/src/utils.cpp index 0c07d8ffc..13755e5bc 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -158,7 +158,7 @@ vector list_directory(const string &path) { std::vector out; DIR *dir; - class dirent *ent; + struct dirent *ent; dir = opendir(path.empty() ? "." : path.c_str()); while ((ent = readdir(dir)) != NULL) { direntry f;