diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2026-05-27 08:37:01 -0700 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2026-05-27 08:37:39 -0700 |
| commit | 54b6ea14a928d015098c41f88aff126df169fecc (patch) | |
| tree | 7eb95f00b443e464f0199718bc9f85e2486e249c /java/org/gnu/emacs/EmacsDialogButtonLayout.java | |
| parent | 967d8182cfa2d6c845853210e4fd4ab398efe069 (diff) | |
Port MinGW GCC 9.2 image.c fix to non MS-Windows
Avoid useless casts on GCC 14+ platforms on non MS-Windows, by
using a cast only if HAVE_NTGUI. That cast should not provoke
-Wuseless-cast regardless of how MS-Windows defines HDC, since it
casts to an Emacs-defined type. This change lets the code compile
again on Fedora 44 with --enable-gcc-warnings.
* src/dispextern.h (PIX_CONTAINER_TO_CONTEXT): New macro.
It defaults to the identity macro.
(Emacs_Pix_Context): Default to Emacs_Pix_Container.
* src/image.c (pbm_load, png_load_body, jpeg_load_body)
(tiff_load, gif_load, svg_load_image): Use the new macro
instead of a cast.
Diffstat (limited to 'java/org/gnu/emacs/EmacsDialogButtonLayout.java')
0 files changed, 0 insertions, 0 deletions
