aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
authorJosh Triplett <josh@freedesktop.org>2007-07-14 13:06:34 -0700
committerJosh Triplett <josh@freedesktop.org>2007-07-14 13:06:34 -0700
commit3a38b8db6d5ffa9d19c08c854c71c7a5f03e3934 (patch)
tree00809fcb61045921cec06dd65bc526790163c4ed
parent7f033045bd2141e57d585b695f0670d0fd55aa3a (diff)
downloadsparse-dev-3a38b8db6d5ffa9d19c08c854c71c7a5f03e3934.tar.gz
Fix sparse warnings in c2xml: mark globals static and remove unused globals
Signed-off-by: Josh Triplett <josh@freedesktop.org>
-rw-r--r--c2xml.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/c2xml.c b/c2xml.c
index 2d911ffe..37f29cf9 100644
--- a/c2xml.c
+++ b/c2xml.c
@@ -21,11 +21,9 @@
#include "scope.h"
#include "symbol.h"
-xmlDocPtr doc = NULL; /* document pointer */
-xmlNodePtr root_node = NULL;/* root node pointer */
-xmlDtdPtr dtd = NULL; /* DTD pointer */
-xmlNsPtr ns = NULL; /* namespace pointer */
-int idcount = 0;
+static xmlDocPtr doc = NULL; /* document pointer */
+static xmlNodePtr root_node = NULL;/* root node pointer */
+static int idcount = 0;
static void examine_symbol(struct symbol *sym, xmlNodePtr node);