nx-libs icon indicating copy to clipboard operation
nx-libs copied to clipboard

dix: Fix a warning about GetTimeInMillis return value in XFont2.

Open sunweaver opened this issue 1 year ago • 1 comments

Ported over from XOrg Server:

commit e1ccd0fa0e1081edf8a2c69ce6e8e3f67a4aecba
Author: Emma Anholt <[email protected]>
Date:   Mon May 7 16:46:15 2018 -0700

    dix: Fix a warning about GetTimeInMillis return value in XFont2.

    Signed-off-by: Eric Anholt <[email protected]>
    Reviewed-by: Adam Jackson <[email protected]>

This resolves the following issue when built with GCC-14 (and beyond):

../../dix/dixfonts.c: At top level:
../../dix/dixfonts.c:2485:27: error: initialization of âuint32_t (*)(void)â {aka âunsigned int (*)(void)â} from incompatible pointer type âCARD32 (*)(void)â {aka âlong unsigned int (*)(void)â} [-Wincompatible-pointer-types]
 2485 |     .get_time_in_millis = GetTimeInMillis,
      |

sunweaver avatar Jan 15 '25 22:01 sunweaver

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1086473

sunweaver avatar Jan 15 '25 22:01 sunweaver