Skip to content

Correct the removal of -Wstrict-prototypes from compiler flags. #12093

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

Merged
merged 1 commit into from
Sep 14, 2018

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Sep 11, 2018

Trying to remove the invalid flag in run() was too early (.compiler is
still None at that point so we would just always get a (silenced)
AttributeError -- catching the AttributeError is necessary to make
things work on Windows). Indeed, the Py3.5 build currently displays a
lot of warnings about -Wstrict-prototypes. Doing the removal in
build_extensions() instead works.

This went unnoticed because the upstream issue in distutils
(https://bugs.python.org/issue5755) was recently fixed in Py3.6.6 and
3.7.0; but this still affects Py3.5 and Py3.6.{0-5}.

Corrects #11965.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

Trying to remove the invalid flag in run() was too early (.compiler is
still None at that point so we would just always get a (silenced)
AttributeError -- catching the AttributeError is necessary to make
things work on Windows).  Indeed, the Py3.5 build currently displays a
lot of warnings about -Wstrict-prototypes.  Doing the removal in
build_extensions() instead works.

This went unnoticed because the upstream issue in distutils
(https://bugs.python.org/issue5755) was recently fixed in Py3.6.6 and
3.7.0; but this still affects Py3.5 and Py3.6.{0-5}.
@anntzer anntzer added the Build label Sep 11, 2018
@tacaswell tacaswell added this to the v3.1 milestone Sep 12, 2018
@tacaswell
Copy link
Member

But I also approved the last one so...

@NelleV NelleV merged commit d4f0d4e into matplotlib:master Sep 14, 2018
@NelleV
Copy link
Member

NelleV commented Sep 14, 2018

Thanks @anntzer !

@anntzer anntzer deleted the wstrict-prototypes branch September 14, 2018 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants