From e102e23014dbd44e21ff7afd20bc62d728afa8d6 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 3 Mar 2022 22:03:31 -0800 Subject: [PATCH] DevIL plugin: squash -Wsign-conversion warning for 'ilSaveF' call MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The DevIL plugin provides a number of output devices for which it claims IDs matching the DevIL `ILenum` types. That is, it effectively stashes the DevIL output format in the Graphviz device ID. This change simply makes it more obvious to the compiler that the translation back and forth is intentional. For more information, see the DevIL manual.¹ ¹ http://openil.sourceforge.net/docs/DevIL%20Manual.pdf --- plugin/devil/gvdevice_devil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/devil/gvdevice_devil.c b/plugin/devil/gvdevice_devil.c index 56e791aed..6c4ace94f 100644 --- a/plugin/devil/gvdevice_devil.c +++ b/plugin/devil/gvdevice_devil.c @@ -63,7 +63,7 @@ static void devil_format(GVJ_t * job) job->imagedata); // output to the provided open file handle - ilSaveF(job->device.id, job->output_file); + ilSaveF((ILenum)job->device.id, job->output_file); // We're done with the image, so delete it. ilDeleteImages(1, &ImgId); -- 2.50.1