diff options
| author | Stefan Kangas | 2022-07-14 14:02:27 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2022-07-14 14:02:27 +0200 |
| commit | 35238c4fc020baccc1de24b38fe7b69e97e22c69 (patch) | |
| tree | 59cd9ce117ee90dfe2900dc1f0358748bf46cc89 | |
| parent | 2b869237cc1394a34619a28363050f7ee694a5f0 (diff) | |
| download | emacs-35238c4fc020baccc1de24b38fe7b69e97e22c69.tar.gz emacs-35238c4fc020baccc1de24b38fe7b69e97e22c69.zip | |
Pacify -Wunused-macros in --without-all builds
* src/image.c (IMAGE_TYPE_INIT): Make conditional on image support.
| -rw-r--r-- | src/image.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/image.c b/src/image.c index aa7bb3ba667..cc6f27612b9 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -1071,9 +1071,16 @@ struct image_type | |||
| 1071 | libraries on Windows), or NULL if none. */ | 1071 | libraries on Windows), or NULL if none. */ |
| 1072 | bool (*init) (void); | 1072 | bool (*init) (void); |
| 1073 | /* An initializer for the init field. */ | 1073 | /* An initializer for the init field. */ |
| 1074 | # define IMAGE_TYPE_INIT(f) f | 1074 | #endif |
| 1075 | #else | 1075 | #if defined HAVE_RSVG || defined HAVE_PNG || defined HAVE_GIF || \ |
| 1076 | # define IMAGE_TYPE_INIT(f) | 1076 | defined HAVE_TIFF || defined HAVE_JPEG || defined HAVE_XPM || \ |
| 1077 | defined HAVE_NS || defined HAVE_HAIKU || defined HAVE_PGTK || \ | ||
| 1078 | defined HAVE_WEBP | ||
| 1079 | # ifdef WINDOWSNT | ||
| 1080 | # define IMAGE_TYPE_INIT(f) f | ||
| 1081 | # else | ||
| 1082 | # define IMAGE_TYPE_INIT(f) | ||
| 1083 | # endif | ||
| 1077 | #endif | 1084 | #endif |
| 1078 | }; | 1085 | }; |
| 1079 | 1086 | ||