]> granicus.if.org Git - graphviz/commitdiff
smyrna: make 'smyrnaGlade' static
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 10 Nov 2021 15:21:25 +0000 (07:21 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 16 Nov 2021 14:52:28 +0000 (06:52 -0800)
This variable is not used outside of its containing file.

cmd/smyrna/main.c
cmd/smyrna/smyrnadefs.h

index c0636b1bd9701d7a1a97d9ccdaed26856c0182fb..98d0fc545eae4c92d2bebdc6c2a5830a496405b3 100644 (file)
@@ -38,7 +38,7 @@
 #include <getopt.h>
 
 static char *smyrnaDir;                /* path to directory containin smyrna data files */
-char *smyrnaGlade;
+static char *smyrnaGlade;
 
 /* smyrnaPath:
  * Construct pathname for smyrna data file.
index df9be74579a00ca42b8119abf3d7c4a454895a4c..29b5d773452c906110ca453863961fafa172c7b7 100644 (file)
@@ -450,6 +450,5 @@ typedef struct
     extern ViewInfo *view;
     extern GtkMessageDialog *Dlg;
     extern char *smyrnaPath(char *suffix);
-    extern char *smyrnaGlade;
 
     extern void glexpose(void);