]> granicus.if.org Git - graphviz/commitdiff
Remove 2 -Wunused-variable warnings in gvrender_gd.c
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 7 Nov 2020 14:01:44 +0000 (15:01 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 21 Nov 2020 08:12:47 +0000 (09:12 +0100)
plugin/gd/gvrender_gd.c

index ddc89cf2fb49dc7784392ffead3f32cc10f647d2..a318b0870384a0616512289dfdeb690d06cdcadb 100644 (file)
@@ -637,6 +637,7 @@ static gvrender_features_t render_features_gd = {
     RGBA_BYTE,                 /* color_type */
 };
 
+#ifdef HAVE_GD_GIF
 static gvdevice_features_t device_features_gd = {
     GVDEVICE_BINARY_FORMAT,    /* flags */
     {0.,0.},                   /* default margin - points */
@@ -651,6 +652,7 @@ static gvdevice_features_t device_features_gd_tc = {
     {0.,0.},                    /* default page width, height - points */
     {96.,96.},                 /* default dpi */
 };
+#endif
 
 static gvdevice_features_t device_features_gd_tc_no_writer = {
     GVDEVICE_BINARY_FORMAT