mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
add -Wpointer-arith -Wcast-qual -Wcast-align and others to compile flags, and fix const cast warnings generated by new flags
git-svn-id: svn://localhost/ardour2/branches/3.0@13124 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
69ca705286
commit
760ccbabfb
16 changed files with 37 additions and 24 deletions
|
|
@ -203,7 +203,7 @@ LV2PluginUI::lv2ui_instantiate(const std::string& title)
|
|||
_external_ui_feature.URI = LV2_EXTERNAL_UI_URI;
|
||||
_external_ui_feature.data = &_external_ui_host;
|
||||
|
||||
features_src = features = (LV2_Feature**)_lv2->features();
|
||||
features_src = features = const_cast<LV2_Feature**>(_lv2->features());
|
||||
features_count = 2;
|
||||
while (*features++) {
|
||||
features_count++;
|
||||
|
|
@ -216,7 +216,7 @@ LV2PluginUI::lv2ui_instantiate(const std::string& title)
|
|||
*features++ = *features_src++;
|
||||
}
|
||||
} else {
|
||||
features_dst = (LV2_Feature**)_lv2->features();
|
||||
features_dst = const_cast<LV2_Feature**>(_lv2->features());
|
||||
}
|
||||
|
||||
if (!ui_host) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue