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 _psutil_bsd.c compile error on OpenBSD #1619

Merged
merged 1 commit into from
Nov 12, 2019
Merged

Fix _psutil_bsd.c compile error on OpenBSD #1619

merged 1 commit into from
Nov 12, 2019

Conversation

n1000
Copy link
Contributor

@n1000 n1000 commented Nov 12, 2019

Compilation issue seen during install via pip:

    cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -fPIC -O2 -pipe -O2 -pipe -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_BSD=1 -DPSUTIL_VERSION=565 -DPSUTIL_OPENBSD=1 -I/usr/local/include/python3.7m -c psutil/_psutil_bsd.c -o build/temp.openbsd-6.6-amd64-3.7/psutil/_psutil_bsd.o
    psutil/_psutil_bsd.c:1043:53: error: expected ')'
        if (PyModule_AddIntConstant(mod, "SZOMB", SZOMB); INITERR; // unused
                                                        ^
    psutil/_psutil_bsd.c:1043:8: note: to match this '('
        if (PyModule_AddIntConstant(mod, "SZOMB", SZOMB); INITERR; // unused
           ^
    psutil/_psutil_bsd.c:1043:53: warning: if statement has empty body [-Wempty-body]
        if (PyModule_AddIntConstant(mod, "SZOMB", SZOMB); INITERR; // unused
                                                        ^
    psutil/_psutil_bsd.c:1043:53: note: put the semicolon on a separate line to silence this warning
    1 warning and 1 error generated.
    error: command 'cc' failed with exit status 1

@giampaolo giampaolo merged commit ef03215 into giampaolo:master Nov 12, 2019
@giampaolo giampaolo added the bug label Nov 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants