From: Matthew Fernandez Date: Fri, 4 Mar 2022 06:03:31 +0000 (-0800) Subject: DevIL plugin: squash -Wsign-conversion warning for 'ilSaveF' call X-Git-Tag: 4.0.0~197^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e102e23014dbd44e21ff7afd20bc62d728afa8d6;p=graphviz DevIL plugin: squash -Wsign-conversion warning for 'ilSaveF' call 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 --- 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);