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

Fixes related to compiling on OSX #1

Merged
merged 2 commits into from Dec 24, 2016
Merged

Fixes related to compiling on OSX #1

merged 2 commits into from Dec 24, 2016

Conversation

maihde
Copy link

@maihde maihde commented Dec 24, 2016

When compiling on OSX, the Makefile needed to be changed because clang's emulation of gcc was not happy with the 'common/*' inclusion.

In addition, clang giving a warning that the conditional checks where the output of recvfrom() was assigned to the unsigned-integer received_bytes and then checked against -1...and thus would have no effect.

Michael Ihde added 2 commits December 24, 2016 11:47
Without this, clang/gcc on Mac OSX will fail to build because it
thinks that the .h files are to be precompiled-headers.
When compiling with clang/gcc the following warning is emitted:

    warning: comparison of constant -1 with expression of type 'uint16_t'
    (aka 'unsigned short') is always false
    [-Wtautological-constant-out-of-range-compare]

Changing received_bytes to match the return type of recvfrom() resolves
this warning and also requires changing the format statements within
the printf() calls.
@nonoo nonoo merged commit 140c9b8 into sharkrf:master Dec 24, 2016
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