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

Remove 'register' keyword. #206

Merged
merged 1 commit into from
Oct 1, 2016

Conversation

lgritz
Copy link
Contributor

@lgritz lgritz commented Sep 30, 2016

'register' is a relic of K&R-era C, it's utterly useless in modern compilers. It's been deprecated in C++11, and therefore will generate warnings when encountered -- and many packages that use OpenEXR's public headers use -Werr to turn warnings into errors. Starting in C++17, the keyword is removed entirely, and thus will certainly be a build break for that version of the standard. So it's time for it to go.

'register' is a relic of K&R-era C, it's utterly useless in modern
compilers.  It's been deprecated in C++11, and therefore will generate
warnings when encountered -- and many packages that use OpenEXR's public
headers use -Werr to turn warnings into errors. Starting in C++17, the
keyword is removed entirely, and thus will certainly be a build break
for that version of the standard. So it's time for it to go.
@ehanway-ilm ehanway-ilm merged commit 6788745 into AcademySoftwareFoundation:develop Oct 1, 2016
@cary-ilm cary-ilm added this to the Pre-ASWF milestone Apr 26, 2020
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.

4 participants