Debian Codegraph @

debian/patches/0015-Remove-deprecation-warning.patch

raw
1 From: =?utf-8?q?Bastien_Roucari=C3=A8s?= <[email protected]>
2 Date: Wed, 26 Jun 2024 18:34:48 +0000
3 Subject: Remove deprecation warning
4
5 For debian it is too early to warn user
6
7 forwarded: not-needed
8 ---
9 MagickWand/deprecate.c | 2 --
10 MagickWand/magick-cli.c | 2 --
11 2 files changed, 4 deletions(-)
12
13 diff --git a/MagickWand/deprecate.c b/MagickWand/deprecate.c
14 index 9622d73..895a25c 100644
15 --- a/MagickWand/deprecate.c
16 +++ b/MagickWand/deprecate.c
17 @@ -558,8 +558,6 @@ WandExport MagickBooleanType ConvertImageCommand(ImageInfo *image_info,
18 assert(exception != (ExceptionInfo *) NULL);
19 if (IsEventLogging() != MagickFalse)
20 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"...");
21 - (void) FormatLocaleFile(stderr,"WARNING: %s\n",
22 - "The convert command is deprecated in IMv7, use \"magick\" instead of \"convert\" or \"magick convert\"\n");
23 if (argc == 2)
24 {
25 option=argv[1];
26 diff --git a/MagickWand/magick-cli.c b/MagickWand/magick-cli.c
27 index 62ce185..a3bb830 100644
28 --- a/MagickWand/magick-cli.c
29 +++ b/MagickWand/magick-cli.c
30 @@ -1319,8 +1319,6 @@ WandExport MagickBooleanType MagickImageCommand(ImageInfo *image_info,int argc,
31 /* "convert" command - give a "deprecated" warning" */
32 if (len>=7 && LocaleCompare("convert",argv[0]+len-7) == 0) {
33 cli_wand->process_flags = ConvertCommandOptionFlags;
34 - (void) FormatLocaleFile(stderr,"WARNING: %s\n",
35 - "The convert command is deprecated in IMv7, use \"magick\"\n");
36 }
37
38 /* Special Case: If command name ends with "script" implied "-script" */