Re: [hackers] [dwm][PATCH RESEND 1/2] drw: Maintain const-correctness for fontconfig/Xft types

From: NRK <nrk_AT_disroot.org>
Date: Mon, 22 Aug 2022 15:55:01 +0600

On Sun, Aug 21, 2022 at 11:08:53PM +0100, Chris Down wrote:
> We retrieve these from their respective functions arguments as const,
> and can trivially respect that.

Hi Chris,

There's one more instance that's missed by this patch, it gets caught if
you try to compile with `-Wcast-qual`:

        drw.c: In function 'drw_text':
        drw.c:336:75: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
          336 | usedfont->xfont, x, ty, (XftChar8 *)utf8str, utf8strlen);
              | ^

- NRK
Received on Mon Aug 22 2022 - 11:55:01 CEST

This archive was generated by hypermail 2.3.0 : Mon Aug 22 2022 - 12:00:48 CEST