Skip to content

vst3 wrapper causes pragma-pack warnings which can't be suppressed from outside the wrapper #455

@XiNNiW

Description

@XiNNiW

Forgive me if this is more a factor of my lack of skill with CMake but when using the clap wrapper I encountered warnings that I could not get rid of that originated in the vst3 codebase. Its the same warnings that are discussed here: https://forum.juce.com/t/juce-8-0-12-linux-vst-embedded-interface-pragma-pack-warnings/67852/7

They came to the conclusion that the warnings could be safely ignored. I have -Werror on for my project so I needed some way of suppressing them.

I added the following to my CMake:
target_compile_options(${VST3_TARGET}-clap-wrapper-vst3-lib PRIVATE -Wno-pragma-pack)

Which feels like it sort of breaks the encapsulation of the clap-wrapper cmake files.

Should clap-wrapper have a line in its cmake function for vst3 wrappers that suppresses these warnings? I would be happy to open a pull request if this is desired.

If not, perhaps there might be some way to pass flags through the cmake wrapper function?

What do folks think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions