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

GCC 11.2 compile warning - make Embree C++20 ready #397

Open
Vertexwahn opened this issue Aug 26, 2022 · 0 comments
Open

GCC 11.2 compile warning - make Embree C++20 ready #397

Vertexwahn opened this issue Aug 26, 2022 · 0 comments

Comments

@Vertexwahn
Copy link
Contributor

If I use -Werror with GCC 11.2 to build Embree I get:

external/embree/common/sys/barrier.cpp: In member function 'void embree::BarrierSysImplementation::wait()':
external/embree/common/sys/barrier.cpp:104:7: error: '++' expression of 'volatile'-qualified type is deprecated [-Werror=volatile]
  104 |       count++;
      |       ^~~~~

The new C++20 standard has deprecated volatile - this should be reworked to make it future proof

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

No branches or pull requests

1 participant