diff options
| author | Josh Triplett <josh@freedesktop.org> | 2007-07-14 13:06:34 -0700 |
|---|---|---|
| committer | Josh Triplett <josh@freedesktop.org> | 2007-07-14 13:06:34 -0700 |
| commit | 3a38b8db6d5ffa9d19c08c854c71c7a5f03e3934 (patch) | |
| tree | 00809fcb61045921cec06dd65bc526790163c4ed | |
| parent | 7f033045bd2141e57d585b695f0670d0fd55aa3a (diff) | |
| download | sparse-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.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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); |
