Skip to content

[clang] __attribute__((shared)) ignored on Windows #155821

@CendioOssman

Description

@CendioOssman

The attribute shared is an important IPC mechanism on Windows. But something is broken with clang's handling of this, as I only get this warning when using it:

/local/home/ossman/devel/tigervnc/win/wm_hooks/wm_hooks.cxx:383:23: error: 'shared' attribute ignored [-Werror,-Wignored-attributes]
  383 | bool enable_synth_kbd SHARED = true;
      |                       ^
/local/home/ossman/devel/tigervnc/win/wm_hooks/wm_hooks.cxx:29:51: note: expanded from macro 'SHARED'
   29 | #define SHARED __attribute__((section ("shared"), shared))
      |                                                   ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    clangClang issues not falling into any other categoryplatform:windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions