Conversation
cladmi
left a comment
There was a problem hiding this comment.
Changes look good, murdock still builds correctly, ACK.
|
more to come, here too |
a1e205d to
a9e59fa
Compare
82c5df7 to
e443610
Compare
|
Is this still WIP? |
Dismissed because of changes after the ACK
|
Test post incoming. Sorry this is the best PR I could think of :-/. |
|
\o/ |
|
The thingy is now live so this comment might show up once again in this PR, but after that it shouldn't anymore ;-). |
|
|
||
| if (try_long && ((res = gnrc_netapi_get(iface, NETOPT_ADDRESS_LONG, 0, | ||
| l2src, l2src_maxlen)) > max_short_len)) { | ||
| l2src, l2src_maxlen)) > (int)max_short_len)) { |
There was a problem hiding this comment.
I think without this change this wouldn't collide with #7925. This file is removed in that PR, so if you revert this change it could get in even with the GNRC embargo.
sys/shell/commands/sc_netif.c
Outdated
| int hl; | ||
| gnrc_ipv6_netif_t *entry; | ||
| if (((hl = atoi(argv[3])) < 0) || (hl > UINT8_MAX)) { | ||
| if (((hl = atoi(argv[3])) < 0) || (hl > (int)UINT8_MAX)) { |
| if (try_long && ((res = gnrc_netapi_get(iface, NETOPT_ADDRESS_LONG, 0, | ||
| l2src, l2src_maxlen)) > max_short_len)) { | ||
| /* get source address length */ | ||
| int res = gnrc_netapi_get(iface, NETOPT_SRC_LEN, 0, |
There was a problem hiding this comment.
Why is the variable declaration moved down? IMHO (and I stress that this is not a convention of the project but my personal) it is way more readable and comprehensible if it is at the top of the block, like it was before.
None of this changes except the cast in l270 seem to be about sign-compare errors, but maybe I'm mistaken. I'm not a friend of "massive" code restructuring in separate PRs and would prefer to put everything that isn't about the sign-compare error into a separate PR.
There was a problem hiding this comment.
(btw: this is also a change that was simplified in #7925, since gnrc_netif(2) allows me to access the L2-address directly).
There was a problem hiding this comment.
regarding code restructuring: I agree (my bad, was carried away by the idea of optimising just a little 😉 ), such should be done in separate PRs if anyway.
Lets see what's left of it after merging #7925 and rebasing this one.
| if (try_long && ((res = gnrc_netapi_get(iface, NETOPT_ADDRESS_LONG, 0, | ||
| l2src, l2src_maxlen)) > max_short_len)) { | ||
| /* get source address length */ | ||
| int res = gnrc_netapi_get(iface, NETOPT_SRC_LEN, 0, |
There was a problem hiding this comment.
Why is the variable declaration moved down? IMHO (and I stress that this is not a convention of the project but my personal) it is way more readable and comprehensible if it is at the top of the block, like it was before.
None of this changes except the cast in l270 seem to be about sign-compare errors, but maybe I'm mistaken. I'm not a friend of "massive" code restructuring in separate PRs and would prefer to put everything that isn't about the sign-compare error into a separate PR.
sys/net/gnrc/netif2/gnrc_netif2.c
Outdated
| res = 0; | ||
| for (unsigned i = 0; | ||
| (res < opt->data_len) && (i < GNRC_NETIF2_IPV6_ADDRS_NUMOF); | ||
| for (unsigned i = 0; (res < (int)opt->data_len) && |
There was a problem hiding this comment.
Here and below: Maybe have the end-condution completely on its own line.
|
Please rebase |
|
(GNRC embargo is lifted) |
2b58d37 to
97be415
Compare
|
rebased, may I squash? |
|
Please squash |
cpu, nrf5x_common: fix sign-compare in periph/flashpage
drivers, periph_common: fix sign-compare in flashpage
cpu, sam0_common: fix sign-compare error in periph/gpio
cpu, cc2538: fix sign-compare in periph/timer
cpu, sam3: fix sign-compare in periph/gpio
cpu, stm32_common: fix sign-compare in periph/pwm
cpu, stm32_common: fix sign-compare in periph/timer
cpu, stm32_common: fix sign-compare in periph/flashpage
cpu, nrf5x_common: fix sign-compare in radio/nrfmin
cpu, samd21: fix sign-compare in periph/pwm
cpu, ezr32wg: fix sign-compare in periph/gpio
cpu, ezr32wg: fix sign-compare in periph/timer
drivers, ethos: fix sign-compare
sys, net: fix sign-compare
cpu, atmega_common: fix sign-compare error
cpu, msp430fxyz: fix sign-compare in periph/gpio
boards, msb-430-common: fix sign-compare in board_init
driver, cc2420: fix sign-compared
sys/net: fix sign-compare in gnrc_tftp
driver, pcd8544: fix sign-compare
driver, pn532: fix sign-compare
driver, sdcard_spi: fix sign-compare
tests: fix sign_compare
sys/net, lwmac: fix sign_compare
pkg, lwip: fix sign-compare
boards, waspmote: make CORECLOCK unsigned long to fix sign_compare error
tests, sock_ip: fix sign compare
tests, msg_avail: fix sign compare
tests, sock_udp: fix sign compare
boards: fix sign-compare for calliope and microbit matrix
3e0fcd0 to
e381317
Compare
|
rebased and squashed |
| #define sys_clock_freq() ((SYS_CTRL->cc2538_sys_ctrl_clk_ctrl.CLOCK_CTRLbits.OSC ? \ | ||
| RCOSC16M_FREQ : XOSC32M_FREQ) >> \ | ||
| SYS_CTRL->cc2538_sys_ctrl_clk_ctrl.CLOCK_CTRLbits.SYS_DIV ) | ||
| #define sys_clock_freq() ((uint32_t)\ |
There was a problem hiding this comment.
Weird point to break here IMHO, but okay.
|
The complaint by Travis is valid, but unrelated (and due to version differences in cppcheck). Let's merge and fix that issue in a separate PR. |
|
See #8164 for the Travis issue fix. |
|
Thanks, we are moving toward -Wall -Wextra -Werror by default :) |
PR is required to achieve #7919, and contains several fixes for sign-compare errors