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

Replaced strerror_r XSI-compliant to GNU-specific version as esp-idf … #13

Closed
wants to merge 1 commit into from

Conversation

izmmisha
Copy link
Contributor

…depends on _GNU_SOURCE

fixed strerror_r function mismatch

/home/im/esp-apple-homekit-adk/port/src/HAPPlatformLog.c: In function 'HAPPlatformLogPOSIXError':
/home/im/esp-apple-homekit-adk/port/src/HAPPlatformLog.c:60:13: warning: initialization of 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
     int e = strerror_r(errorNumber, errorString, sizeof errorString);
             ^~~~~~~~~~

This problem leading errors such as #11

Copy link

@skanico skanico left a comment

Choose a reason for hiding this comment

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

This solved my problem. No more crashes. Thanks @izmmisha

@shahpiyushv
Copy link
Collaborator

This fix has now been merged in this commit. Thanks for the contribution.

@shahpiyushv shahpiyushv closed this Nov 6, 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.

3 participants