Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

@janvorli
Copy link
Member

@janvorli janvorli commented Apr 3, 2018

The c_static_assert definition is causing build problems on OSX.
The compiler complains about the typedef we use to implement the
c_static_assert:
declaration shadows a typedef in the global scope [-Werror,-Wshadow]
This is due to multiple static asserts

To fix it, I have modified the c_static_assert to use _Static_assert
C feature that's available in clang.

The c_static_assert definition is causing build problems on OSX.
The compiler complains about the typedef we use to implement the
c_static_assert:
declaration shadows a typedef in the global scope [-Werror,-Wshadow]
This is due to multiple static asserts

To fix it, I have modified the c_static_assert to use _Static_assert
C feature that's available in clang.
@janvorli janvorli added this to the Future milestone Apr 3, 2018
@janvorli janvorli self-assigned this Apr 3, 2018
@janvorli janvorli requested review from bartonjs and luhenry April 3, 2018 14:05
@janvorli
Copy link
Member Author

janvorli commented Apr 3, 2018

Fixes #28768
CC: @winzig

@ghost
Copy link

ghost commented Apr 3, 2018

nit, the issue it fixes is https://github.com/dotnet/corefx/issues/28756

@janvorli
Copy link
Member Author

janvorli commented Apr 3, 2018

@kasper3 thanks for spotting the wrong issue reference.

@janvorli
Copy link
Member Author

janvorli commented Apr 3, 2018

Merging, the OSX failure is a known issue in the managed tests run.

@janvorli janvorli merged commit 133d190 into dotnet:master Apr 3, 2018
@janvorli janvorli deleted the fix-xcode-9.3-build branch April 3, 2018 15:38
@karelz karelz modified the milestones: Future, 2.2.0, 2.1.0 Apr 4, 2018
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
The c_static_assert definition is causing build problems on OSX.
The compiler complains about the typedef we use to implement the
c_static_assert:
declaration shadows a typedef in the global scope [-Werror,-Wshadow]
This is due to multiple static asserts

To fix it, I have modified the c_static_assert to use _Static_assert
C feature that's available in clang.

Commit migrated from dotnet/corefx@133d190
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants