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

Fix several darwin related warnings #1487

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

emilengler
Copy link
Contributor

based upon #1485.

Please read the commit messages for more details.

Currently, it is not possible to build git master on Darwin, as seen in
several issues reported previously.

This commit fixes that issues, by initializing two variables to NULL.
I have no idea, why this solves the linking error, as to my knowledge,
global variables do not need to be initialized.
This commit removes the `const` qualifier from certain member fields,
as the Darwin version of several `<term.h>` related functions only
accept a `char *` rather than a `const char *`, thereby resulting in
dozens of compiler warnings.
This commit includes the real `tpus(3)` function from the appropriate
`term.h` header file, if found.

This commit is necessary to fix a compiler warning on Darwin.
@ailin-nemui
Copy link
Contributor

I fear that fixing compiler warnings on one side may cause compiler warnings on another side?

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.

None yet

2 participants