From e38259fd0a425423de8224f61d8a549fd0b691b9 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Thu, 5 May 2022 10:47:39 +0200 Subject: [PATCH] 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 ``` --- ...n-crypto-fix-mismatching-function-signa.patch | Bin 0 -> 3699 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 pkg/openwsn/patches/0015-drivers-common-crypto-fix-mismatching-function-signa.patch diff --git a/pkg/openwsn/patches/0015-drivers-common-crypto-fix-mismatching-function-signa.patch b/pkg/openwsn/patches/0015-drivers-common-crypto-fix-mismatching-function-signa.patch new file mode 100644 index 0000000000000000000000000000000000000000..591e0c1a96ec35c8dc408e254e2a16283b335be6 GIT binary patch literal 3699 zcmds4S##Sq5Prw6*ybhH!9x^HNle{IqQrG3b<&BQ$%Dt0L2@Y~;-Mix+iH&A-UTVz zjx8UZ`k^gG5<%>V-4DCaZdqjDIpc8@OfZgzQQ!qU^g`DjxiO!(-q3ZT$aBLH&0xRC z;Q*H~7=dm3^#>f=9ejPMusiYxTt zFsb^mP2wxk<~T60eb@C}4|+CfX9rdA8AIj6(eEz~r+dc`mEsgjX@y0W6}c6btEDP@ zh{ZW%LS|friOA;=S9z!exh%yz=c+1EGIp2<2|P`UGYRjPn14EW2Yk*&4yu3vfpjiK ziV>U%l|W9LC_x(|Jrar-ew|MH>?{#s0wi;iajCF8ftZU_)-pb0CnqQDNyZoW1dJ(I zNs*zY!w^)~2V54?l0~e}c!}1BH}4Ovpb}|hEf;gEAcxLmZf)Ek81enO_Q`5Y{+j`p z2>b6}ef;h9&RXrP2^4!Qhb)eA;Ec`CcPIYP_5sVXD1G4Nyvi_FFwg;0t0ltIO5|!h zQ%3{u_$hqh3r&a;Pw{CgAgM~^{`*X<2>b^Zrbc;r~8>-SNK~ zz&CQxCO{*ag&`e3>OeppAg4YhsqN@?rAnl3Sf9VTmdU!07>2<%H@u7TONY>b-mPrO zB8ttBe7c7%c(YFKJb6rM(xz`Ho^?GoxrRUGVaJ~Krdi5{8 zo)&`gfU@Z#SNjxnrJ^iRLHltP&zGDWj@~xqje%wD+&*Ag1*r((c8=>52F&;;J+61B z@a8hzw#K$)UfJW(VB{TB8E*=CLzq!%-@3xnhq~6U4})bvLj#qdrVyCu#zlG{SSh-h zJpepwB;S_MhP(z&5DgrR9W+fGN5f$-3?2fUwTio7vu4qt84k8JYMKWv(2hWpcSX+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