]> granicus.if.org Git - graphviz/commitdiff
janitor stuff - clean up some warnings
authorellson <devnull@localhost>
Mon, 23 Jul 2007 18:39:11 +0000 (18:39 +0000)
committerellson <devnull@localhost>
Mon, 23 Jul 2007 18:39:11 +0000 (18:39 +0000)
plugin/core/gvrender_core.c
plugin/core/gvrender_core_ps.c
plugin/core/gvrender_core_svg.c

index c8d5764cfb98aa8404e8395f2ff37eb138d93fe6..a73565558fda001c14af49a8b3cb32c24bff962d 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
 #ifdef HAVE_LIBZ
 #include <zlib.h>
 #endif
index 85ea1ddc11b08b91f84b089889efaaee716d17ee..8d2967a52d324c32f1995723ff1d99b4a02b1e6f 100644 (file)
@@ -198,7 +198,9 @@ static void psgen_end_cluster(GVJ_t * job)
 
 static void psgen_begin_node(GVJ_t * job)
 {
+#if 0
     obj_state_t *obj = job->obj;
+#endif
 
     core_fputs(job, "gsave\n");
 #if 0
@@ -223,7 +225,9 @@ static void psgen_end_node(GVJ_t * job)
 static void
 psgen_begin_edge(GVJ_t * job)
 {
+#if 0
     obj_state_t *obj = job->obj;
+#endif
 
     core_fputs(job, "gsave\n");
 #if 0
index 8f99f4bfbad75d8d01d895c6c14860fb36596aea..cdd3ef31668995f1cb09e2b91898d50f38a1d902 100644 (file)
@@ -303,21 +303,16 @@ static void svg_textpara(GVJ_t * job, pointf p, textpara_t * para)
     core_fputs(job, " style=\"");
     pA = para->postscript_alias;
     if (pA) {
-       char *family, *weight, *stretch, *style;
+       char *family=NULL, *weight=NULL, *stretch=NULL, *style=NULL;
        switch(GD_fontnames(job->gvc->g)) {
-               case NATIVEFONTS:
-                   family = pA->family;
-                   weight = pA->weight;
-                   style = pA->style;
-                   break;
                case PSFONTS:
                    family = pA->name;
                    weight = pA->weight;
                    style = pA->style;
                    break;
-               case SVGFONTS:
+               case NATIVEFONTS:
+               case SVGFONTS: /* same as NATIVEFONTS - jce */
                default:
-                   /* same as NATIVEFONTS - jce */
                    family = pA->family;
                    weight = pA->weight;
                    style = pA->style;