Issue with recent clang fixes


#1

Hi,

Since “Fixes for some clang static analysis warnings” I run into an assertion when adding an empty PopupMenu. This used to work:

    PopupMenu p, q;
    p.addSubMenu("Open Recent", q);

But now triggers the assertion in: https://github.com/julianstorer/JUCE/commit/78aac0995a3503e731a10e468eb105fa63a260e0#L11R482

Thoughts?


#2

Thanks, I think that assertion was a bit zealous - I’ve sorted it out now!