Skip to content

compilation warning from gcc regarding misplaced function attributes #74391

Open
@RobertHenry6bev

Description

@RobertHenry6bev

Description

Compiling against main/head with gcc-12 on ARM64 turns up many instances of this warning message:
runtime/src/coreclr/debug/debug-pal/../../pal/inc/pal.h:3483:1: warning: attributes are not permitted in this position [-Wattributes]

This line seems to have been added in #71512
I'm just noticing the issue now, perhaps as a side effect of starting the dotnet8 cycle.

Reproduction Steps

compile with g++-12, and do not suppress warning messages regarding attribute placement

Expected behavior

no compile time warnings

Actual behavior

get compile time warnings

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

/cc @kunal

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions