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 compilation warning in GCC #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix compilation warning in GCC #65

wants to merge 1 commit into from

Conversation

agentydragon
Copy link

Hi!
This fixes a compilation warning I got trying to compile this with GCC:

cpulimit.c:46:18: warning: extra tokens at end of #ifdef directive

According to https://stackoverflow.com/questions/2998864/how-to-add-a-or-condition-in-ifdef, the proper way to do OR together two #ifdef's is #if defined(A) || defined(B), not #ifdef A || B.
Cheers!

GCC complained about:
cpulimit.c:46:18: warning: extra tokens at end of #ifdef directive
@denji
Copy link

denji commented Dec 12, 2016

duplicate #48

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.

2 participants