]> granicus.if.org Git - graphviz/commitdiff
fix rpm breakage from missing headers in source distro for gtk plugin
authorellson <devnull@localhost>
Sat, 12 Aug 2006 01:54:03 +0000 (01:54 +0000)
committerellson <devnull@localhost>
Sat, 12 Aug 2006 01:54:03 +0000 (01:54 +0000)
collect some return values to suppress warnings

lib/common/psusershape.c
plugin/core/gvrender_core.c
plugin/gtk/Makefile.am

index 268a359fdbc64f23e6e5f06a65189e0e945bfe14..f9cfe3498625a30afe3e52512d752d6b255605b9 100644 (file)
@@ -47,7 +47,7 @@ static usershape_t *user_init(char *str)
     char line[BUFSIZ];
     FILE *fp;
     struct stat statbuf;
-    int saw_bb, must_inline;
+    int saw_bb, must_inline, rc;
     int lx, ly, ux, uy;
     usershape_t *us;
 
@@ -84,7 +84,7 @@ static usershape_t *user_init(char *str)
        fstat(fileno(fp), &statbuf);
        contents = us->data = N_GNEW(statbuf.st_size + 1, char);
        fseek(fp, 0, SEEK_SET);
-       fread(contents, statbuf.st_size, 1, fp);
+       rc = fread(contents, statbuf.st_size, 1, fp);
        contents[statbuf.st_size] = '\0';
        fclose(fp);
        dtinsert(EPSF_contents, us);
index 796e5a243616642eccd77db59befa950daa34b0c..c8d5764cfb98aa8404e8395f2ff37eb138d93fe6 100644 (file)
@@ -88,7 +88,7 @@ void core_fini_compression(GVJ_t *job)
 
 void core_fputs(GVJ_t * job, char *s)
 {
-    int len;
+    int len, rc;
 
     len = strlen(s);
     switch (job->compression) {
@@ -98,7 +98,7 @@ void core_fputs(GVJ_t * job, char *s)
 #endif
        break;
     case COMPRESSION_NONE:
-       fwrite(s, sizeof(char), (unsigned) len, job->output_file);
+       rc = fwrite(s, sizeof(char), (unsigned) len, job->output_file);
        break;
     }
 }
index 1abaf7ccc63246b2953d3b383f50bbc196263b47..f776894c642861f5b3c89acefc3ad59c459b9d9e 100644 (file)
@@ -12,6 +12,7 @@ AM_CPPFLAGS = \
 
 if WITH_PANGOCAIRO
 if WITH_GTK
+noinst_HEADERS = support.h interface.h callbacks.h
 noinst_LTLIBRARIES = libgvplugin_gtk_C.la
 pkglib_LTLIBRARIES = libgvplugin_gtk.la
 endif
@@ -28,4 +29,4 @@ libgvplugin_gtk_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined
 libgvplugin_gtk_la_SOURCES = $(libgvplugin_gtk_C_la_SOURCES)
 libgvplugin_gtk_la_LIBADD = $(GTK_LIBS) $(GNOMEUI_LIBS)
 
-EXTRA_DIST = gtk.glade gtk.gladep
+EXTRA_DIST = gtk.glade gtk.gladep