# Warnings in latest VST3 changes

**URL:** <https://forum.juce.com/t/warnings-in-latest-vst3-changes/66330>\
**Category:** General JUCE discussion\
**Created:** [June 10, 2025, 4:59pm UTC](https://forum.juce.com/t/warnings-in-latest-vst3-changes/66330 "2025-06-10T16:59:59Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![RolandMR](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rolandmr/32/641_2.png) [@RolandMR](https://forum.juce.com/u/RolandMR)\
**Post date:** [June 10, 2025, 4:59pm UTC](https://forum.juce.com/t/warnings-in-latest-vst3-changes/66330/1 "2025-06-10T16:59:59Z")

</div>

```auto
/Users/rrabien/actions-runner/_work/Nexus/Nexus/modules/JUCE/modules/juce_audio_plugin_client/VST3/juce_VST3ModuleInfo.h:102:31: error: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Werror,-Wsign-compare]
  102 | for (int i = 0; i < oldIds.size(); ++i)
      | ~ ^ ~~~~~~~~~~~~~
/Users/rrabien/actions-runner/_work/Nexus/Nexus/modules/JUCE/modules/juce_audio_plugin_client/VST3/juce_VST3ModuleInfo.h:116:23: error: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Werror,-Wsign-compare]
  116 | if (i < oldIds.size() - 1)
      | ~ ^ ~~~~~~~~~~~~~~~~~
2 errors generated.

```

Can these be silenced?

> <https://github.com/reFX/JUCE/commit/3e62ec517eff5d76f6e86572057036b43f815a58>

---

<div class="post-metadata">

**Author:** ![RolandMR](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rolandmr/32/641_2.png) [@RolandMR](https://forum.juce.com/u/RolandMR)\
**Post date:** [June 10, 2025, 11:13pm UTC](https://forum.juce.com/t/warnings-in-latest-vst3-changes/66330/2 "2025-06-10T23:13:03Z")

</div>

Also, which DAWs are you using to test this VST2 → VST3 migration stuff? I know it’s not supported in all DAWs. Any plans to add it for the juce hosting side?

---

<div class="post-metadata">

**Author:** ![PeterRoos](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@PeterRoos](https://forum.juce.com/u/PeterRoos)\
**Post date:** [June 11, 2025, 4:53am UTC](https://forum.juce.com/t/warnings-in-latest-vst3-changes/66330/3 "2025-06-11T04:53:19Z")

</div>

Please do not silence such warnings in the framework, but in your own projects.  
To avoid them you can loop with unsigned, because size() does not return an int. Different types.

---

<div class="post-metadata">

**Author:** ![anthony-nicholls](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/anthony-nicholls/32/1246_2.png) [@anthony-nicholls](https://forum.juce.com/u/anthony-nicholls)\
**Post date:** [June 11, 2025, 6:46am UTC](https://forum.juce.com/t/warnings-in-latest-vst3-changes/66330/4 "2025-06-11T06:46:09Z")

</div>

The only DAW that I know implements it right now is Cubase, that’s what we tested with, although I assume at least Nuendo must too. Reaper seems to already have its own mechanism. I think it must just assume the parameters are declared in the same order. I’m not sure about other DAWs. We haven’t yet considered adding this to the host, but at some point I think that would be sensible.

---

<div class="post-metadata">

**Author:** ![Toddler-Boy](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/toddler-boy/32/2007_2.png) [@Toddler-Boy](https://forum.juce.com/u/Toddler-Boy)\
**Post date:** [June 11, 2025, 2:57pm UTC](https://forum.juce.com/t/warnings-in-latest-vst3-changes/66330/5 "2025-06-11T14:57:24Z")

</div>

The code creating these warnings is in JUCE. How are we supposed to silence them? Why would the JUCE team not fix their code? What are you talking about?

---

<div class="post-metadata">

**Author:** ![nicolasdanet](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/nicolasdanet/32/56_2.png) [@nicolasdanet](https://forum.juce.com/u/nicolasdanet)\
**Post date:** [June 11, 2025, 3:19pm UTC](https://forum.juce.com/t/warnings-in-latest-vst3-changes/66330/6 "2025-06-11T15:19:51Z")

</div>

I ended by using `juce_recommended_warning_flags` to avoid to get warnings never fixed.

---

<div class="post-metadata">

**Author:** ![Toddler-Boy](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/toddler-boy/32/2007_2.png) [@Toddler-Boy](https://forum.juce.com/u/Toddler-Boy)\
**Post date:** [June 11, 2025, 3:35pm UTC](https://forum.juce.com/t/warnings-in-latest-vst3-changes/66330/7 "2025-06-11T15:35:18Z")

</div>

Those will also be applied to your code. I think Peter must have misunderstood something as surely nobody would suggest leaving warnings in the framework for others to find workarounds for.

---

<div class="post-metadata">

**Author:** ![anthony-nicholls](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/anthony-nicholls/32/1246_2.png) [@anthony-nicholls](https://forum.juce.com/u/anthony-nicholls)\
**Post date:** [June 11, 2025, 3:38pm UTC](https://forum.juce.com/t/warnings-in-latest-vst3-changes/66330/8 "2025-06-11T15:38:32Z")

</div>

This should be fixed on develop now, thanks for reporting.

> <https://github.com/juce-framework/JUCE/commit/af256aab027b7aeefeb91fe6f864f83c5657e3eb>

---

<div class="post-metadata">

**Author:** ![PeterRoos](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@PeterRoos](https://forum.juce.com/u/PeterRoos)\
**Post date:** [June 11, 2025, 3:50pm UTC](https://forum.juce.com/t/warnings-in-latest-vst3-changes/66330/9 "2025-06-11T15:50:23Z")

</div>

Relax Michael.

That was an appropriate warning about mixing signed and unsigned types.

Roland was asking for silencing those warnings.

Silencing more warnings for sloppy Juce code is not a good approach, in my humble opinion.

It has now been appropriately fixed with a size\_t already.

---

<div class="post-metadata">

**Author:** ![Toddler-Boy](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/toddler-boy/32/2007_2.png) [@Toddler-Boy](https://forum.juce.com/u/Toddler-Boy)\
**Post date:** [June 11, 2025, 4:37pm UTC](https://forum.juce.com/t/warnings-in-latest-vst3-changes/66330/10 "2025-06-11T16:37:40Z")

</div>

That’s exactly what Roland asked for. With “silencing” he didn’t mean that they should suppress the warning, but fix it.

He used similar language before and it was understood correctly.

---

<div class="post-metadata">

**Author:** ![PeterRoos](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@PeterRoos](https://forum.juce.com/u/PeterRoos)\
**Post date:** [June 11, 2025, 4:41pm UTC](https://forum.juce.com/t/warnings-in-latest-vst3-changes/66330/12 "2025-06-11T16:41:22Z")

</div>

Sure,

There are quite some spots in Juce where compiler warnings are silenced.

This looked like a request for another one.

Not everyone uses your native language like you do.

---

<div class="post-metadata">

**Author:** ![Toddler-Boy](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/toddler-boy/32/2007_2.png) [@Toddler-Boy](https://forum.juce.com/u/Toddler-Boy)\
**Post date:** [June 11, 2025, 4:58pm UTC](https://forum.juce.com/t/warnings-in-latest-vst3-changes/66330/13 "2025-06-11T16:58:21Z")

</div>

JUCE suppresses warnings for 3rd party libraries (like HarfBuzz) where they have little to no control.

I’m not a native speaker myself, but I’ve seen enough requests like this (not only in JUCE but also in other frameworks/libraries) that I intuitively understand these requests now.

---

<div class="post-metadata">

**Author:** ![RolandMR](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rolandmr/32/641_2.png) [@RolandMR](https://forum.juce.com/u/RolandMR)\
**Post date:** [June 11, 2025, 10:21pm UTC](https://forum.juce.com/t/warnings-in-latest-vst3-changes/66330/14 "2025-06-11T22:21:33Z")

</div>

This does not appear to be working. If I diff the changes in my moduleinfo.json from the latest released version of Nexus to the version generated by the latest tip of juce, they are not the same.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/7/0/70eb4951a1af91b07a13c2b26d917d71926187c0.png)

The name and version are missing, not sure if that is important.

The Compatibility Old IDs are different. The tip of JUCE generates a shorter id. They are 16 bytes, so there should be 32 hex characters, but I’m only seeing 28.

You are using `std::setw (2)` but you are only calling it once. From the `std::setw` docs:

> Some operations reset the width to zero (see [below](https://en.cppreference.com/w/cpp/io/manip/setw.html#Notes)), so `std::setw` may need to be repeatedly called to set the width for multiple operations.

I think the loop should look like this:

```auto
            for (size_t i = 0; i < oldIds.size(); ++i)
            {
                str << "\""
                    << std::hex
                    << std::setfill ('0')
                    << std::uppercase;

                for (auto byte : oldIds[i])
                    str << std::setw (2) << (int) byte;

                str.clear();
                str << "\"";

                if (i < oldIds.size() - 1)
                    str << ", ";
            }

```

---

<div class="post-metadata">

**Author:** ![anthony-nicholls](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/anthony-nicholls/32/1246_2.png) [@anthony-nicholls](https://forum.juce.com/u/anthony-nicholls)\
**Post date:** [June 12, 2025, 8:19am UTC](https://forum.juce.com/t/warnings-in-latest-vst3-changes/66330/15 "2025-06-12T08:19:18Z")

</div>

Thanks, that sounds like a serious issue I’ll take a look immediately.

---

<div class="post-metadata">

**Author:** ![RolandMR](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rolandmr/32/641_2.png) [@RolandMR](https://forum.juce.com/u/RolandMR)\
**Post date:** [June 12, 2025, 6:15pm UTC](https://forum.juce.com/t/warnings-in-latest-vst3-changes/66330/16 "2025-06-12T18:15:22Z")

</div>

Just tested with Repear and it’s working again. Will test with Cubase once they refresh my NFR.

---

<div class="post-metadata">

**Author:** ![anthony-nicholls](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/anthony-nicholls/32/1246_2.png) [@anthony-nicholls](https://forum.juce.com/u/anthony-nicholls)\
**Post date:** [June 12, 2025, 7:35pm UTC](https://forum.juce.com/t/warnings-in-latest-vst3-changes/66330/17 "2025-06-12T19:35:23Z")

</div>

Seems you got there before me but for the record these two commits aim to fix the issues you raised.

> <https://github.com/juce-framework/JUCE/commit/7c7e51176e0d0d58f46c14085242bda0cf19ef66>

> <https://github.com/juce-framework/JUCE/commit/26edac975dcf5cac44be6d98d317aaf6e5cdcf3d>

I also suppressed a couple more warnings

> <https://github.com/juce-framework/JUCE/commit/34675235e5852050961deea1dfc3174fbc1d42b6>
