]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
cracklib: Modify patch to compile with GCC 14
authorZoltan Boszormenyi <zboszor@gmail.com>
Mon, 29 Apr 2024 10:29:59 +0000 (12:29 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 30 Apr 2024 21:20:13 +0000 (22:20 +0100)
commit914128f6bd988cde278e087fb9457a0c70c7e5ec
treeb6470c93123d49d5cc6a54ea8e3abdc4b4138ec1
parent731f47ecfd8ad6558aac629806810789c623986b
cracklib: Modify patch to compile with GCC 14

GCC 14 implicitly turns a warning into a compiler error:

| ../../git/src/lib/packlib.c: In function ‘PWClose’:
| ../../git/src/lib/packlib.c:554:40: error: passing argument 1 of ‘HwmsHostToBigEndian’ from incompatible pointer type [-Wincompatible-pointer-types]
|   554 |             HwmsHostToBigEndian(tmp_pwp.hwms, sizeof(tmp_pwp.hwms), en_is32);
|       |                                 ~~~~~~~^~~~~
|       |                                        |
|       |                                        uint32_t * {aka unsigned int *}
| ../../git/src/lib/packlib.c:142:27: note: expected ‘char *’ but argument is of type ‘uint32_t *’ {aka ‘unsigned int *’}
|   142 | HwmsHostToBigEndian(char *pHwms, int nLen,int nBitType)
|       |                     ~~~~~~^~~~~

Add the cast to (char *) to silence it.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/cracklib/cracklib/0001-packlib.c-support-dictionary-byte-order-dependent.patch