Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use null character instead of recasting NULL to char #11485

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
Jun 22, 2018

Conversation

dahlbaek
Copy link
Contributor

In a few cases, (char)NULL is used instead of '\0'. This pull request is meant to fix that.

closes #11484

NULL is implementation dependent, so (char)NULL may cause problems.
The null character, '\0', is always well defined.
@afvincent afvincent requested a review from dopplershift June 22, 2018 17:33
@dstansby dstansby added this to the v3.0 milestone Jun 22, 2018
@dahlbaek
Copy link
Contributor Author

dahlbaek commented Jun 22, 2018

Just for reference, with this simple change I am able to build matplotlib succesfully using

export CC=clang CXX=clang++

python3 -m venv venv &&
. venv/bin/activate &&
pip install --upgrade pip &&
pip install --upgrade numpy cycler pyparsing python-dateutil pytz six kiwisolver &&
python -mpip install -v . >clang.log 2>&1

See
clang.log for details.

@tacaswell tacaswell modified the milestones: v3.0, v2.2.3 Jun 22, 2018
@tacaswell tacaswell merged commit 09490e0 into matplotlib:master Jun 22, 2018
dstansby added a commit that referenced this pull request Jun 23, 2018
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.

Matplotlib does not build on OpenBSD using clang
4 participants