mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pkg/openwsn: fix mismatching function signatures
This allows OpenWSN again to be compiled with newer versions of GCC, which in `master` fails with: ``` "make" -C /home/maribu/Repos/software/RIOT/build/pkg/openwsn/drivers/common/crypto -f /home/maribu/Repos/software/RIOT/Makefile.base MODULE=openwsn_crypto /home/maribu/Repos/software/RIOT/build/pkg/openwsn/drivers/common/crypto/aes128.c:49:30: error: argument 1 of type 'uint8_t[16]' {aka 'unsigned char[16]'} with mismatched bound [-Werror=array-parameter=] 49 | owerror_t aes128_enc(uint8_t buffer[16], uint8_t key[16]) { | ~~~~~~~~^~~~~~~~~~ In file included from /home/maribu/Repos/software/RIOT/build/pkg/openwsn/drivers/common/crypto/aes128.c:12: /home/maribu/Repos/software/RIOT/build/pkg/openwsn/drivers/common/crypto/aes128.h:22:31: note: previously declared as 'uint8_t *' {aka 'unsigned char *'} 22 | owerror_t aes128_enc(uint8_t *buffer, uint8_t *key); | ~~~~~~~~~^~~~~~ /home/maribu/Repos/software/RIOT/build/pkg/openwsn/drivers/common/crypto/aes128.c:49:50: error: argument 2 of type 'uint8_t[16]' {aka 'unsigned char[16]'} with mismatched bound [-Werror=array-parameter=] 49 | owerror_t aes128_enc(uint8_t buffer[16], uint8_t key[16]) { | ~~~~~~~~^~~~~~~ In file included from /home/maribu/Repos/software/RIOT/build/pkg/openwsn/drivers/common/crypto/aes128.c:12: /home/maribu/Repos/software/RIOT/build/pkg/openwsn/drivers/common/crypto/aes128.h:22:48: note: previously declared as 'uint8_t *' {aka 'unsigned char *'} 22 | owerror_t aes128_enc(uint8_t *buffer, uint8_t *key); | ~~~~~~~~~^~~ cc1: all warnings being treated as errors ```
This commit is contained in:
parent
1259fb66e6
commit
e38259fd0a
Binary file not shown.
Loading…
Reference in New Issue
Block a user