Message ID | Zz3Y4LB9MPT25udE@c8d99ad60702 (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
Series | [1/2] crypto: fix -std=c23 build failure | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
prestwoj/iwd-ci-gitlint | fail | [2/2] anqputil: fix -std=c23 build failure 5: B1 Line exceeds max length (94>80): " https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=55e3bd376b2214e200fa76d12b67ff259b06c212" 9: B1 Line exceeds max length (110>80): " ../src/anqputil.c:134:24: error: incompatible types when returning type '_Bool' but 'char **' was expected" |
diff --git a/src/anqputil.c b/src/anqputil.c index c0e0307e..724ff22d 100644 --- a/src/anqputil.c +++ b/src/anqputil.c @@ -131,7 +131,7 @@ char **anqp_parse_nai_realms(const unsigned char *anqp, unsigned int len) uint16_t count; if (len < 2) - return false; + return NULL; count = l_get_le16(anqp);
gcc-15 switched to -std=c23 by default: https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=55e3bd376b2214e200fa76d12b67ff259b06c212 As a result `iwd` fails the build as: ../src/anqputil.c:134:24: error: incompatible types when returning type '_Bool' but 'char **' was expected 134 | return false; | ^~~~~ Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com> --- src/anqputil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)