bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

uniname/uniname: Fix -Wformat-signedness warning


From: Bruno Haible
Subject: uniname/uniname: Fix -Wformat-signedness warning
Date: Sun, 04 Jun 2023 10:54:37 +0200

In GNU gettext, with gcc 13, I see this warning:

gettext-tools/gnulib-lib/uniname/uniname.c:295:42: warning: format '%d' expects 
argument of type 'int', but argument 3 has type 'ucs4_t' {aka 'unsigned int'} 
[-Wformat=]

This patch fixes it. The other patch fixes some comments.


2023-06-04  Bruno Haible  <bruno@clisp.org>

        uniname/uniname: Fix -Wformat-signedness warning.
        * lib/uniname/uniname.c (unicode_character_name): Use %u instead of %d
        in format string.

2023-06-04  Bruno Haible  <bruno@clisp.org>

        uniname/uniname: Improve comments.
        * lib/uniname/uniname.c (unicode_character_name): Fix comments.

Attachment: 0001-uniname-uniname-Improve-comments.patch
Description: Text Data

Attachment: 0002-uniname-uniname-Fix-Wformat-signedness-warning.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]