From 8fa44cbff0405e923c6b08a35ac18575ab08b7a1 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 12 Dec 2024 14:07:06 +0100 Subject: [PATCH] bcp47: Silence a gcc 14 -Wanalyzer-infinite-loop warning. * lib/bcp47.c: Include . (bcp47_to_xpg): Verify an invariant through an abort(). --- ChangeLog | 6 ++++++ lib/bcp47.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8b1b923d17..47b518100f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-12-12 Bruno Haible + + bcp47: Silence a gcc 14 -Wanalyzer-infinite-loop warning. + * lib/bcp47.c: Include . + (bcp47_to_xpg): Verify an invariant through an abort(). + 2024-12-11 Paul Eggert doc: isdigit and isxdigit are locale-independent diff --git a/lib/bcp47.c b/lib/bcp47.c index 96f7aad8ce..09f60f1eec 100644 --- a/lib/bcp47.c +++ b/lib/bcp47.c @@ -21,6 +21,7 @@ /* Specification. */ #include "bcp47.h" +#include #include #include "c-ctype.h" @@ -421,6 +422,8 @@ bcp47_to_xpg (char *xpg, const char *bcp47, const char *codeset) } } } + else + abort (); } } -- 2.39.5