smlng
1ed6f84992
doc: fix whitespaces
2017-09-06 08:49:05 +02:00
516aca6b18
Merge pull request #7558 from kaspar030/add_xtimer_set_timeout_flag
...
sys: xtimer: add xtimer_set_timeout_flag()
2017-09-05 16:18:18 +02:00
162478cd6d
spelling: s/initialise/initialize/
2017-09-05 11:04:25 +02:00
970b5f8ff5
sys/net: fix typo on word 'initialized'
2017-09-04 16:14:19 +02:00
35f329e05c
sys/xtimer: add xtimer_set_timeout_flag()
2017-09-01 23:54:28 +02:00
Hauke Petersen
59861c1ef7
sys/color: add rgba structure
2017-09-01 09:35:48 +02:00
88433cba2f
sys: random: make use of submodules in Makefile
2017-08-30 23:49:30 +02:00
Joakim Nohlgård
1f81b1092b
Merge pull request #6804 from OTAkeys/pr/vfs_write_command
...
sc_vfs: add write command
2017-08-30 13:27:52 +02:00
Peter Kietzmann
c177a1a75d
Merge pull request #6942 from smlng/driver/my9221
...
Add driver for MY9221 LED controller and (based on that) the Seeed Studio Grove LED bar
2017-08-30 09:21:33 +02:00
smlng
ca0cc3956d
saul: add support for grove ledbar
2017-08-30 09:12:57 +02:00
Sebastian Meiling
86c386e3d6
Merge pull request #7391 from OTAkeys/fix/cbor
...
cbor: fix out of bound memory access
2017-08-28 17:19:19 +02:00
Pieter Willemsen
b76bfec0a3
cbor: fix out of bound memory access
2017-08-28 14:42:43 +02:00
Joakim Nohlgård
480f77065b
Merge pull request #7514 from gebart/pr/netdev-set-const
...
netdev: Make set() value parameter const void *
2017-08-26 08:09:15 +02:00
Hauke Petersen
7f14e15273
Merge pull request #7250 from smlng/sys/phydat/enh_scale2str
...
sys, phydat: omit scale to string conversion if not applicable
2017-08-25 15:17:02 +02:00
smlng
e4382ae5c5
sys,phydat: fix scale_2_str for multi and non dimensional units
2017-08-25 14:38:55 +02:00
Joakim Nohlgård
065bc62e0a
netdev: Make set() value parameter const void *
2017-08-25 13:41:19 +02:00
Peter Kietzmann
e529571437
drivers/lps331ap: add saul support for temperature sensor
2017-08-25 10:19:18 +02:00
Cenk Gündoğan
5c4000cd62
Merge pull request #7468 from bergzand/rpl/parent-sort
...
rpl: Sort list of parents
2017-08-23 11:39:24 +02:00
426e978972
rpl: Sort list of parents
2017-08-22 16:03:16 +02:00
smlng
48327744a2
gcoap: make more parameters configurable
2017-08-22 11:26:31 +02:00
Martine Lenders
9ea1c6e7c8
Merge pull request #7481 from gebart/pr/netopt-csma-be
...
netopt: add NETOPT_CSMA_MINBE, NETOPT_CSMA_MAXBE
2017-08-17 20:03:34 +02:00
Joakim Nohlgård
b5984d2855
Merge pull request #7447 from bergzand/netopt/tx-retries
...
netopt: Add option for retrieving number of retransmissions
2017-08-17 17:25:58 +02:00
c33eb2b277
netopt: add NETOPT_TX_RETRIES_NEEDED
2017-08-17 16:47:20 +02:00
Joakim Nohlgård
83ab722e22
netopt: Add NETOPT_CSMA_MAXBE, NETOPT_CSMA_MINBE
2017-08-17 16:37:19 +02:00
Joakim Nohlgård
c80e31f190
netopt: Improve documentation for NETOPT_CSMA_RETRIES
2017-08-17 14:32:30 +02:00
Joakim Nohlgård
5e743756a5
netopt: Fix documentation typo
2017-08-17 14:32:30 +02:00
smlng
f3e8c8c82c
fmt: add signed 32 bit float point formating
2017-08-15 12:31:07 +02:00
Martine Lenders
60fa22f08f
Merge pull request #7438 from miri64/gnrc_netreg/enh/doc-entry-init
...
gnrc_netreg: enhance doc on entry initialization
2017-08-14 12:57:29 +02:00
Martine Lenders
d24e072af2
gnrc_netreg: enhance doc on entry initialization
2017-08-14 12:51:29 +02:00
Joakim Nohlgård
8415c4eebc
gnrc_icmpv6: Clean up redundant conditional debug statement
2017-08-09 16:27:30 +02:00
Vincent Dupont
6965134555
sc_vfs: add write command
2017-08-08 18:14:59 +02:00
Hauke Petersen
8908cebe42
net/gcoap: renamed source folder s/coap/gocap/
2017-08-08 16:39:48 +02:00
Hauke Petersen
8f577eca4c
net/gcoap: add Uri-Query handling for requests
2017-08-08 16:22:05 +02:00
Hauke Petersen
32ab8cf724
net/gcoap: expose creation of resource list to API
...
Creating the resource list is useful outside the /.well-known/core
handler, e.g. for the registration to resource directories.
2017-08-08 16:00:15 +02:00
Hauke Petersen
2290a9f69b
net/gcoap: added remote sock ep to resp handler cb
...
When receiving a response to a request send our earlier, it is in
some cases essential, to know something about who send the reponse.
This is needed for example when sending requests to multicast
addresses to be able to react to different incoming responses.
2017-07-31 11:11:06 +02:00
Hauke Petersen
36322e95b7
net/gcoap: collection of simple fixes ( #7413 )
...
* net/gcoap: fixed request state when getting a resp
The request state should be set to GCOAP_MEMO_RESP before calling
the response handler in case we actually go a response...
* net/gcoap: make test for 0.00 code more efficient
This optimization saves the computation of the code and compares
the raw field to `0`.
2017-07-28 14:15:17 +02:00
Tobias Heider
3b5860451c
gnrc/sock: fix fallthrough warning ( #7403 )
...
* gnrc/sock: fix fallthrough warning
* gnrc/sock: added spaces around "Fall Through."
2017-07-25 21:12:30 +02:00
smlng
ff76b60d5e
shell: remove feature guards from sc_rtc
2017-07-24 12:14:42 +02:00
Joakim Nohlgård
da4f2f6e6e
Merge pull request #6892 from neiljay/pr/mips-newlib-v2
...
cpu/mips: Integrate better with RIOT newlib layer (v2)
2017-07-20 00:27:51 +02:00
Martine Lenders
60124a03ee
Merge pull request #7284 from miri64/sixlowpan_nd/enh/version-getter-setter
...
sixlowpan_nd: provide convinience functions to get/set ABRO version
2017-07-15 17:50:35 +02:00
Martine Lenders
5a986e583a
sixlowpan_nd: provide convinience functions to get/set ABRO version
2017-07-15 17:18:00 +02:00
Martine Lenders
d9bb94eff8
Merge pull request #7183 from miri64/gnrc_pktbuf/enh/fix-common-module
...
gnrc_pktbuf: move common auxiliary functions to common module
2017-07-15 17:07:26 +02:00
959d3982f5
Merge pull request #7325 from OTAkeys/pr/spiffs_fix_doc
...
fs/spiffs: improve documentation
2017-07-07 11:37:07 +02:00
Vincent Dupont
ec9f37436d
fs/spiffs: improve documentation
2017-07-07 11:31:23 +02:00
Martine Lenders
17a35a0e1d
Merge pull request #7311 from miri64/bcd/feat/initial
...
bcd: initial import of binary coded decimal en-/decoder
2017-07-06 20:51:22 +02:00
Martine Lenders
3f95f9ed85
bcd: initial import of binary coded decimal en-/decoder
2017-07-06 20:43:29 +02:00
smlng
1a967ab23a
sys: enhance trickle docu
2017-07-04 14:44:17 +02:00
smlng
b7eecca93c
sys: fix doxygen grouping of tsrb und embUnit
2017-07-04 14:44:17 +02:00
268c6b647e
drivers/can: fix doxygen documentation + typo
2017-07-03 20:43:51 +02:00
f6f9ba157d
Merge pull request #7288 from smlng/enh/driver/lsm6dsl
...
drivers: enhance lsm6dsl
2017-07-03 17:34:59 +02:00
smlng
6d25209967
drivers, lsm6dsl: add SAUL for temperature
2017-07-03 16:00:32 +02:00
smlng
67201c18f4
sys, ssp: fix doxygen grouping
2017-07-03 10:55:35 +02:00
b80c249d2c
sys/netopt: add new enum types for LoRa
2017-06-30 18:59:49 +02:00
smlng
70007e5ea4
sys, uart_stdio: retain constness on cast
2017-06-29 13:02:02 +02:00
smlng
addf64349c
saul: add mpl3115a2
2017-06-29 09:57:17 +02:00
Hauke Petersen
9ec615f8c2
net/emcute: added doc for maximum buffer size
...
On 16- and 8-bit platforms, ssizte_t can only hold 2 byte (maximum
of 32767). So when calling sock_udp_recv() we can not pass it a
buffer exeeding this size without potially running into overflow
issues...
2017-06-28 22:52:34 +02:00
Hauke Petersen
91ff52a897
net/emcute: use size_t for length comparisons
2017-06-28 22:52:34 +02:00
Hauke Petersen
ae367e5537
net/emcute: check value of length field before use
2017-06-28 22:51:39 +02:00
f1a93bf36e
drivers/dht: some cleanup
2017-06-28 16:57:29 +02:00
Martine Lenders
ce0a8ac744
Merge pull request #7193 from smlng/sys/phydat/add_hecto_prefix
...
sys,phydat: add missing prefix, and string conversions
2017-06-28 14:45:42 +02:00
Neil Jones
7b824fe7fe
sys/newlib: Allow building default syscall implementation for mips
...
We can either use the UHI syscall implementation or the RIOT default
one (targeted at VFS, uart-stdio will be added once uart rx is added
to pic32).
2017-06-28 12:56:53 +01:00
Martine Lenders
96b90645ba
Merge pull request #7259 from OTAkeys/pr/const_input_cipher_cbc
...
crypto/cbc: constify input buffers
2017-06-27 19:16:14 +02:00
Vincent Dupont
4f6fadbdc7
crypto/cbc: constify input buffers
2017-06-27 18:58:33 +02:00
44fc2c6a2a
Merge pull request #6176 from kaspar030/add_ssp_support
...
sys: add ssp support
2017-06-27 18:55:10 +02:00
7a0fcc30c8
sys: add initial SSP support
2017-06-27 18:05:14 +02:00
Pieter Willemsen
29e8bd1351
sys: cbor: makefiles can enable cbor functionality
...
new cbor pseudomodules:
- cbor_ctime
- cbor_float
- cbor_semantic_tagging
2017-06-27 17:45:42 +02:00
smlng
7f012f9af8
sys,phydat: add missing unit strings (m^2, m^3)
2017-06-27 11:03:07 +02:00
smlng
1cbbece41d
sys,phydat: add prefix hecto
2017-06-27 10:06:45 +02:00
smlng
5fa123c8a2
drivers, jc42: fix constness in jc42_init
2017-06-26 16:22:34 +02:00
067231936f
Merge pull request #5793 from OTAkeys/pr/can_stack
...
can: add a CAN stack for RIOT
2017-06-26 16:02:35 +02:00
Sebastian Meiling
9ce9dd601c
Merge pull request #6554 from zhuoshuguo/lwmac_retry
...
LWMAC: A simple duty cycling 802.15.4 MAC protocol (2nd try).
2017-06-26 12:50:44 +02:00
Martine Lenders
9d3f9f2589
Merge pull request #6402 from OTAkeys/pr/adcxx1c
...
drivers/adcxx1c: add ADC081C/ADC101C/ADC121C i2c adc support
2017-06-26 10:39:02 +02:00
Martine Lenders
6f299f9ac7
doc: gnrc_netreg: add doc on gnrc_netreg_type_t enumerators
2017-06-26 10:19:47 +02:00
Vincent Dupont
35056fd647
drivers/adcxx1c: add ADC081C/ADC101C/ADC121C i2c adc support
2017-06-26 09:46:03 +02:00
Martine Lenders
33449a4a11
Merge pull request #7218 from miri64/gnrc_ipv6_nib/doc/attention
...
gnrc_ipv6_nib: doc: use attention tag instead of bold note
2017-06-25 13:54:56 +02:00
Martine Lenders
fd5d36fb2e
gnrc_ipv6_nib: doc: use attention tag instead of bold note
2017-06-25 13:48:42 +02:00
e71bf07a68
Merge pull request #7223 from kb2ma/gcoap/confirm_piggy_server
...
net/gcoap: Provide piggybacked ACK response to confirmable request
2017-06-24 21:47:37 +02:00
smlng
d2fd406e60
posix: fix pthread_cond_wait and pthread_cond_timedwait
2017-06-24 20:28:52 +02:00
786baac055
Merge pull request #7215 from smlng/posix/pthread/replace_timex
...
Posix: replace all remaining usages of timex in pthread
2017-06-23 09:42:41 +02:00
Ken Bannister
7c0374b975
Reject incoming empty message type as not handled yet
2017-06-22 12:57:34 -04:00
02a3c9f631
Merge pull request #7221 from gebart/pr/fmt-float-negative-bugfix
...
sys/fmt: Fix unintentional pointer advancement for negative numbers in fmt_float
2017-06-22 16:58:24 +02:00
zhuoshuguo
e5d8dde920
gnrc_priority_queue: updated coding style.
2017-06-22 11:36:55 +02:00
Ken Bannister
19ba56b96f
net/gcoap: Add server piggybacked ACK response to a CON request
2017-06-21 22:47:08 -04:00
Joakim Nohlgård
084db19107
sys/fmt: Fix unintentional pointer advancement for negative numbers in fmt_float
2017-06-21 18:28:11 +02:00
zhuoshuguo
a54655890e
LWMAC: a simple duty cycling 802.15.4 MAC protocol.
2017-06-21 16:40:04 +02:00
d9ea159255
drivers: remove useless saul name suffix
2017-06-21 15:06:53 +02:00
b70a4885f4
Merge pull request #7203 from zhuoshuguo/fix_gnrc_mac_coding_style
...
gnrc_mac: update coding style.
2017-06-21 15:02:39 +02:00
smlng
8253510f0b
posix: replace timex in pthread_rwlock
2017-06-21 11:35:27 +02:00
smlng
29d84a6865
posix: replace timex in pthread_cond
2017-06-21 11:24:22 +02:00
Vincent Dupont
8ad59e35cf
sc: add CAN basic send and dump commands
2017-06-19 15:36:20 +02:00
Vincent Dupont
029a127eb3
can: add transceiver support in CAN stack
2017-06-19 15:36:20 +02:00
Vincent Dupont
ab5f8548f2
can: add conn_can top layer interface
...
This module provide support for raw can and isotp
socket-like user interface.
2017-06-19 15:36:20 +02:00
Vincent Dupont
63ca443b05
can: add ISO-TP support
...
ISO-TP is ISO15765 transport protocol over CAN.
Upper interface is located in sys/include/can/isotp.h.
2017-06-19 15:36:20 +02:00
Vincent Dupont
68f1ea8fd0
native: add a CAN device using socketCAN
2017-06-19 15:36:20 +02:00
Vincent Dupont
144a0700f5
can: add autoinit basic support
2017-06-19 15:35:26 +02:00
Vincent Dupont
5469ba1d49
can: add CAN stack
...
The CAN stack support only raw CAN at this time.
It contains a device interface (drivers/include/can/candev.h) and the data link
layer, build around can/device.c can/pkt.c and can/router.c. can/dll.c contains
the upper level and lower level interface to send and receive CAN frames.
Upper layer interface is located in include/can/raw.h
2017-06-19 15:35:26 +02:00
zhuoshuguo
83e1385683
gnrc_mac: updated coding style.
2017-06-19 10:15:41 +02:00
Ken Bannister
aa2f97c80f
net/gcoap: Protect update to open requests with mutex.
2017-06-18 06:29:43 -04:00
Ken Bannister
24b21dbfbc
net/gcoap: Protect message ID state with atomic updates.
...
Also changed semantics for storage of message ID, from last ID to next ID.
This change provides idiomatic use of the return value of the atomic
function, without other side effects on gcoap.
2017-06-18 06:16:15 -04:00
031870038b
Merge pull request #6767 from miri64/evtimer/feat/initial
...
evtimer: initial import
2017-06-17 00:25:22 +02:00
smlng
5cb8a86e44
trickle: enhancements
...
- add asserts
- update docu
2017-06-16 23:04:01 +02:00
fce919d27c
evtimer: initial import
2017-06-16 16:50:54 +02:00
Martine Lenders
f51e4ca767
fixup! gnrc_pktbuf: move common auxiliary functions to common module
2017-06-15 15:15:02 +02:00
Cenk Gündoğan
f1dc041728
Merge pull request #7180 from miri64/gnrc_ipv6_nib/fix/nc-cache-out
...
gnrc_ipv6_nib: fix caching mechanism of neighbor cache
2017-06-15 13:00:41 +02:00
Martine Lenders
b32200e3ad
gnrc_ipv6_nib: fix caching mechanism of neighbor cache
2017-06-15 11:40:46 +02:00
92147cf269
Merge pull request #7168 from smlng/driver/tmp006/rework
...
driver: tmp006 rework
2017-06-14 23:10:45 +02:00
smlng
054c002960
saul: add support for tmp006
2017-06-14 20:45:01 +02:00
Martine Lenders
d8336c38b6
gnrc_pktbuf: move common auxiliary functions to common module
...
The packet buffer was originally designed to have a replaceable
back-end. This is why the actual module is called `gnrc_pktbuf_static`.
However, since than some auxiliary functions snuck into the static
back-end, which should go into the common module (which is a
pseudo-module at the moment).
This fix makes the `gnrc_pktbuf` pseudo-module an actual module and
moves the auxiliary functions to that module.
2017-06-14 12:24:56 +02:00
da16943e8c
sys/auto_init/saul: update bmp180 saul support with api changes
2017-06-14 09:48:20 +02:00
Francisco Acosta
3af1fe5675
Merge pull request #7134 from smlng/macos/fix/posix/clockid_t
...
posix: fix redefined clockid_t on macOS
2017-06-13 17:48:20 +02:00
smlng
16bd7db5dc
posix: fix redefined clockid_t on macOS
2017-06-13 17:32:21 +02:00
Martine Lenders
7a444e56c1
ndp: Add constant for retrans. timer exp. backoff maximum
2017-06-13 14:08:26 +02:00
Sebastian Meiling
863bda7bc8
Merge pull request #7163 from cgundogan/pr/trickle_fix
...
trickle: adjust old_interval to max / 2 in case of I > Imax
2017-06-12 09:48:03 +02:00
Cenk Gündoğan
ef9ee54fe2
doc: nib: neighbor information base everywhere you look
2017-06-12 00:49:07 +02:00
Joakim Nohlgård
8e10e6e3fa
xtimer: Use {} for empty while loops
2017-06-10 06:34:24 +02:00
Cenk Gündoğan
72c3c9cf6a
Merge pull request #6325 from miri64/gnrc_ipv6_nib/feat/internal
...
gnrc_ipv6_nib: initial import of internal NIB functions
2017-06-09 22:05:47 +02:00
Martine Lenders
e92f97cb12
gnrc_ipv6_nib: initial import of internal NIB functions
2017-06-09 21:52:37 +02:00
Martine Lenders
0b42721511
Merge pull request #7155 from zhuoshuguo/gnrc_mac_use_csma_sender
...
gnrc_mac: use csma_sender API when needed for csma transmission
2017-06-09 17:48:37 +02:00
zhuoshuguo
7565cd1d10
gnrc_mac: use software csma when needed.
2017-06-09 16:45:24 +02:00
Cenk Gündoğan
933b3cb378
trickle: adjust old_interval to max / 2 in case of I > Imax
2017-06-09 16:13:49 +02:00
smlng
3ac6d6c80d
schedstats: refine ps output
...
- use unsigned int instead of double
2017-06-09 10:50:07 +02:00
Martine Lenders
1a4c01a912
Merge pull request #7138 from gebart/pr/netopt-ed-level
...
netopt: Add NETOPT_LAST_ED_LEVEL
2017-06-09 10:34:33 +02:00
BytesGalore
89716729c8
Merge pull request #7161 from cgundogan/pr/trickle_enhancements
...
trickle: enhancements
2017-06-09 09:15:54 +02:00
Cenk Gündoğan
9a62bb8307
shell: sc_gnrc_rpl: adjust to trickle enhancements
2017-06-09 09:03:24 +02:00
Cenk Gündoğan
04d89d3381
rpl: adjust to trickle enhancements
2017-06-09 09:03:24 +02:00
Cenk Gündoğan
e0fbb14963
trickle: enhancements
2017-06-09 09:03:24 +02:00
Joakim Nohlgård
533542314d
netopt: Add NETOPT_LAST_ED_LEVEL
2017-06-09 07:14:58 +02:00
Cenk Gündoğan
6add982d3f
rpl: send dis near parent timeout
2017-06-08 21:46:06 +02:00
smlng
1187376d9a
shell: add param checks to rtc commands settime and setalarm
2017-06-07 15:56:40 +02:00
Cenk Gündoğan
935292ce44
gcoap: make stack size configurable
2017-06-07 08:20:35 +02:00
d7543ccf31
sys/auto_init: use new bmx280 implementation for bme280 and bmp280
2017-06-02 14:54:17 +02:00
Martine Lenders
4e7afa44ea
Merge pull request #7103 from kb2ma/opt_gcoap_moveimplstatus
...
net/gcoap: add table of contents to module doc
2017-06-02 12:44:30 +02:00
Joakim Nohlgård
91d930c574
cpu/mips32r2_common: ifdef __attribute__((optimize))
...
Causes compilation error on Clang
2017-06-02 10:24:44 +01:00
1a2097e97e
Merge pull request #7082 from jia200x/openthread_core
...
pkg/openthread: core and tests
2017-06-01 20:20:37 +02:00
José Ignacio Alamos
017280db13
pkg/openthread: add OpenThread core
2017-06-01 13:44:05 -04:00
Ken Bannister
fac0ae1aa9
net/gcoap: Add table of contents to group documentation.
2017-06-01 12:45:33 -04:00
Hauke Petersen
4bc1d2916b
Merge pull request #7096 from haukepetersen/opt_gcoap_misc2
...
net/gcoap: some more minor improvements
2017-06-01 12:54:11 +02:00
Martine Lenders
b28a61d61c
Merge pull request #6670 from gebart/pr/newlib-split-syscalls
...
newlib: Split newlib into one generic part and one default syscalls part
2017-06-01 12:02:01 +02:00
Hauke Petersen
b104433d4e
net/gcoap: improved header documentation
...
- fixed/unified indention throughout the file
- use same style for @brief blocks
- removed colons from end of brief descriptions
- fixed in and out annotations for function parameters
2017-06-01 11:16:27 +02:00
Hauke Petersen
7ba22cfbf8
net/gcoap: added some additional debug output
2017-06-01 11:13:15 +02:00
Hauke Petersen
9d3abe0d12
Merge pull request #7097 from haukepetersen/opt_gcoap_moveimplstatus
...
net/gcoap: moved implemenation status to gcoap.h
2017-06-01 10:36:20 +02:00
Cenk Gündoğan
3921fc86a7
Merge pull request #6901 from BytesGalore/rpl_drop_dao_ack_on_mc
...
rpl: drop DAO-ACK when received via multicast
2017-05-30 21:28:58 +02:00
Martine Lenders
229ad28751
Merge pull request #7112 from rfuentess/doxygen_fixes
...
Doxygen: Minor series of fixes for the documentation
2017-05-30 21:06:06 +02:00
Raul Fuentes
808b56c07f
sock/udp.h: Changed wiki syntax to doxygen
2017-05-30 20:48:41 +02:00
BytesGalore
da38b77ba4
rpl: drop DAO-ACK when received on multicast
2017-05-30 18:05:00 +02:00
BytesGalore
c3843122dd
Merge pull request #7111 from cgundogan/pr/ndp_fallthrough
...
ndp: warn gcc-7 about intentional fall-through
2017-05-30 18:00:02 +02:00
Cenk Gündoğan
3c73d07e04
Merge pull request #7026 from smlng/shell/ccn_lite_cmd_fixup
...
shell: fix _ccnl_content command
2017-05-30 15:35:34 +02:00
Cenk Gündoğan
6065be76e1
ndp: warn gcc-7 about intentional fall-through
...
Since gcc-7 `Wimplicit-fallthrough` is activated by using `-Wextra`.
This leads to the following problem when compiling `gnrc_networking`:
```
RIOT/sys/net/gnrc/network_layer/ndp/internal/gnrc_ndp_internal.c: In function ‘gnrc_ndp_internal_set_state’:
RIOT/sys/net/gnrc/network_layer/ndp/internal/gnrc_ndp_internal.c:106:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
t = ipv6_iface->reach_time;
~~^~~~~~~~~~~~~~~~~~~~~~~~
RIOT/sys/net/gnrc/network_layer/ndp/internal/gnrc_ndp_internal.c:109:9: note: here
case GNRC_IPV6_NC_STATE_DELAY:
^~~~
```
The fall-through in this code is intentional. There are several ways to
warn the comiler about such intentional fall-throughs, which include
e.g. attributed empty statements (`__attribute__ ((fallthrough));`).
I don't like tis approach however. The best way would probably be to
remove this fall-through from the code. However, to keep the diff
minimal, and since ndp will change in the future, I went for warning
the compiler using comments.
The compiler checks comments for several *fall through* regexs to
decide whether a fallthrough was intentional or not.
You can read more about this gcc option in [1]. A note about
fallthrough comment regexs is at the bottom of this article.
[1] https://developers.redhat.com/blog/2017/03/10/wimplicit-fallthrough-in-gcc-7/
2017-05-30 14:23:37 +02:00
Hauke Petersen
bb90e293a2
net/gcoap: make input parameters const
2017-05-26 16:34:40 +02:00
Martine Lenders
d4693648ba
Merge pull request #7095 from kaspar030/add_headerguard_check_script
...
dist: tools: add headerguard check script
2017-05-24 18:08:29 +02:00