From 52af909038b4ea70a8c6ae868291fda31d11e94f Mon Sep 17 00:00:00 2001 From: Joachim Schmitz Date: Tue, 11 Oct 2022 16:01:57 +0200 Subject: [PATCH] 'Fix' MSVC compiler warnings reg. unreferenced function with internal linkage has been removed (C4505), disabling them resp. removing the code. --- src/inspector/models/general/playback/playbackproxymodel.h | 5 +++++ src/inspector/models/pointfpropertyitem.h | 5 +++++ src/notation/view/noteinputbarcustomisemodel.h | 5 +++++ src/playback/view/internal/outputresourceitem.h | 5 +++++ thirdparty/KDDockWidgets/src/DockWidgetQuick.h | 5 +++++ 5 files changed, 25 insertions(+) diff --git a/src/inspector/models/general/playback/playbackproxymodel.h b/src/inspector/models/general/playback/playbackproxymodel.h index 535d8cb238..ef0ac79d1a 100644 --- a/src/inspector/models/general/playback/playbackproxymodel.h +++ b/src/inspector/models/general/playback/playbackproxymodel.h @@ -24,6 +24,11 @@ #include "models/abstractinspectorproxymodel.h" +#if (defined(_MSCVER) || defined(_MSC_VER)) +// unreferenced function with internal linkage has been removed +#pragma warning(disable: 4505) +#endif + namespace mu::inspector { class PlaybackProxyModel : public AbstractInspectorProxyModel { diff --git a/src/inspector/models/pointfpropertyitem.h b/src/inspector/models/pointfpropertyitem.h index 8a55384718..430f897a1e 100644 --- a/src/inspector/models/pointfpropertyitem.h +++ b/src/inspector/models/pointfpropertyitem.h @@ -24,6 +24,11 @@ #include "propertyitem.h" +#if (defined(_MSCVER) || defined(_MSC_VER)) +// unreferenced function with internal linkage has been removed +#pragma warning(disable: 4505) +#endif + namespace mu::inspector { class PointFPropertyItem : public PropertyItem { diff --git a/src/notation/view/noteinputbarcustomisemodel.h b/src/notation/view/noteinputbarcustomisemodel.h index 2d64e01a69..c4067bc0cd 100644 --- a/src/notation/view/noteinputbarcustomisemodel.h +++ b/src/notation/view/noteinputbarcustomisemodel.h @@ -31,6 +31,11 @@ class QItemSelectionModel; +#if (defined(_MSCVER) || defined(_MSC_VER)) +// unreferenced function with internal linkage has been removed +#pragma warning(disable: 4505) +#endif + namespace mu::notation { class NoteInputBarCustomiseItem; class NoteInputBarCustomiseModel : public uicomponents::SelectableItemListModel, public async::Asyncable diff --git a/src/playback/view/internal/outputresourceitem.h b/src/playback/view/internal/outputresourceitem.h index 4b0b6ccb6a..b73c5cb6e8 100644 --- a/src/playback/view/internal/outputresourceitem.h +++ b/src/playback/view/internal/outputresourceitem.h @@ -35,6 +35,11 @@ #include "abstractaudioresourceitem.h" +#if (defined(_MSCVER) || defined(_MSC_VER)) +// unreferenced function with internal linkage has been removed +#pragma warning(disable: 4505) +#endif + namespace mu::playback { class OutputResourceItem : public AbstractAudioResourceItem, public async::Asyncable { diff --git a/thirdparty/KDDockWidgets/src/DockWidgetQuick.h b/thirdparty/KDDockWidgets/src/DockWidgetQuick.h index e028b30284..7ca16d65e4 100644 --- a/thirdparty/KDDockWidgets/src/DockWidgetQuick.h +++ b/thirdparty/KDDockWidgets/src/DockWidgetQuick.h @@ -26,6 +26,11 @@ class QCloseEvent; class QQmlEngine; QT_END_NAMESPACE +#if (defined(_MSCVER) || defined(_MSC_VER)) +// unreferenced function with internal linkage has been removed +#pragma warning(disable: 4505) +#endif + namespace KDDockWidgets { class Frame;