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 warnings/errors thrown by clang on OS X #4444

Merged

Conversation

Yonezawa-T2
Copy link
Contributor

Clang on OS X complains about mixture of signed/unsigned integers. This PR reliefs some errors around XBee and GNRC.

@OlegHahm OlegHahm added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) OS: Mac OS X Host OS: This PR/issue concerns usage of RIOT with Mac OS X as a host system Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer labels Dec 9, 2015
@OlegHahm
Copy link
Member

OlegHahm commented Dec 9, 2015

Should we consider this as a bug that should be fixed for 2015.12? I would tend to yes.

@thomaseichinger
Copy link
Member

@Yonezawa-T2 Thanks a lot for these fixes.

@thomaseichinger thomaseichinger added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Dec 9, 2015
@@ -87,7 +87,7 @@ static gnrc_pktsnip_t *_recv(gnrc_netdev2_t *gnrc_netdev2)
DEBUG("gnrc_netdev2_eth: received packet from %02x:%02x:%02x:%02x:%02x:%02x "
"of length %zu\n",
hdr->src[0], hdr->src[1], hdr->src[2], hdr->src[3], hdr->src[4],
hdr->src[5], nread);
hdr->src[5], (size_t) nread);
Copy link
Member

Choose a reason for hiding this comment

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

For this it might makes sense to actually change the printf formatting option.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Copy link
Member

Choose a reason for hiding this comment

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

Did you push? For me it is still (size_t) nread.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I forgot to git add, only changed commit message. Now updated.

@thomaseichinger
Copy link
Member

@OlegHahm I'd agree, this should go into 2015.12.
@Yonezawa-T2 could you open another PR against https://github.com/RIOT-OS/RIOT/tree/2015.12-branch

@thomaseichinger
Copy link
Member

@Yonezawa-T2 Could you please prefix your commit message with "OSX: ...".

@Yonezawa-T2
Copy link
Contributor Author

This PR is only for a portion of XBee and GNRC. We should enable debug for all modules and compile those modules in the future.

@thomaseichinger
Copy link
Member

ACK when #4444 (comment) is addressed and Travis passed again.

gnrc_ipv6_nc, gnrc_sixlowpan, gnrc_netdev2_eth, gnrc_ipv6, xbee, sixlowpan,
sc_gnrc_6ctx
@Yonezawa-T2
Copy link
Contributor Author

@thomaseichinger Changed format string to d and all CI checks have passed.

@thomaseichinger
Copy link
Member

@Yonezawa-T2 Great, thank you. ACK & Go

thomaseichinger added a commit that referenced this pull request Dec 10, 2015
fix warnings/errors thrown by clang on OS X
@thomaseichinger thomaseichinger merged commit 56d61d4 into RIOT-OS:master Dec 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer OS: Mac OS X Host OS: This PR/issue concerns usage of RIOT with Mac OS X as a host system Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants