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

Sjson undefined symbol fix #2024

Merged
merged 2 commits into from
Jul 4, 2017
Merged

Conversation

jmattsson
Copy link
Member

Fixes #2023 .

  • This PR is for the dev branch rather than for master.
  • This PR is compliant with the other contributing guidelines as well (if not, please describe why).
  • I have thoroughly tested my contribution.
  • The code changes are reflected in the documentation at docs/en/*.

This PR fixes the undefined symbol warnings that appear when including the sjson module.
it also adds a check to catch any future such warnings and bail out the build in such case.

jmattsson added 2 commits July 3, 2017 13:29
From what I can tell they *should* be harmless, but I'd rather we keep a
neat house in the first place.
- Move jsonsl build to regular library build rather than #include the .c file
- Provide wrappers for malloc/calloc/free to fix undefined symbol warnings.
@jmattsson jmattsson requested a review from pjsg July 3, 2017 03:44
@marcelstoer marcelstoer added this to the 2.1 follow-up milestone Jul 3, 2017
Copy link
Member

@pjsg pjsg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. I never saw this in my build environment -- I have no idea why!

@jmattsson jmattsson merged commit 0c315ed into nodemcu:dev Jul 4, 2017
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