From 28fe0ecd6096569b07eb4d183e245c2c26b91201 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 29 Nov 2020 13:30:26 +0100 Subject: [PATCH] Add [[maybe_unused]] to our constexpr constants --- src/common/vst24.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/common/vst24.h b/src/common/vst24.h index 3fb38394..1ed5ed44 100644 --- a/src/common/vst24.h +++ b/src/common/vst24.h @@ -28,8 +28,8 @@ * parameter. Finally the plugin returns a string containing the input or output * name. */ -constexpr int effGetInputProperties = 33; -constexpr int effGetOutputProperties = 34; +[[maybe_unused]] constexpr int effGetInputProperties = 33; +[[maybe_unused]] constexpr int effGetOutputProperties = 34; /** * Found on @@ -37,15 +37,15 @@ constexpr int effGetOutputProperties = 34; * Used to assign names to MIDI keys, for some reason uses the `VstMidiKeyName` * struct defined below rather than a simple string. */ -constexpr int effGetMidiKeyName = 66; +[[maybe_unused]] constexpr int effGetMidiKeyName = 66; /** * Events used to tell a plugin to use a specific speaker arrangement (is this * used outside of things like Dolby Atmos?), or to query its preferred speaker * arrangement. Found on the same list as above. */ -constexpr int effSetSpeakerArrangement = 42; -constexpr int effGetSpeakerArrangement = 69; +[[maybe_unused]] constexpr int effSetSpeakerArrangement = 42; +[[maybe_unused]] constexpr int effGetSpeakerArrangement = 69; /** * The struct that's being passed through the data parameter during the