Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add -Wno-atomic-align #173

Closed

Conversation

jtschuster
Copy link
Contributor

On Linux arm dotnet/runtime builds, this atomic instruction in platform.c warns.

static void exit_lock(dnne_lock_handle* lock)
{
__atomic_exchange_n(lock, DNNE_LOCK_OPEN, __ATOMIC_ACQ_REL);
}

To silence the warning, use "-Wno-atomic-alignment" for clang.

https://dev.azure.com/dnceng-public/public/_build/results?buildId=354415&view=logs&j=fbba4562-0196-5144-0bc8-97e5ecde48bd&t=965fe576-127f-568f-354c-a3511c13c4cb&l=2414

I haven't yet confirmed this change fixes the issue.

@AaronRobinsonMSFT
Copy link
Owner

We shouldn't add this flag. I see the issue. I'll make the fix in source.

@AaronRobinsonMSFT
Copy link
Owner

@jtschuster I'm going to close this in lieu of #174

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants