From: Kristian Høgsberg Date: Fri, 11 Jan 2008 02:08:03 +0000 (-0500) Subject: Fix a few warnings. X-Git-Tag: 0.1~266 X-Git-Url: http://project.juiblex.co.uk/git/?a=commitdiff_plain;h=b83fca44ad12827c6cc637954beb41dbeccd1d98;p=razor.git Fix a few warnings. --- diff --git a/main.c b/main.c index f43784c..7959617 100644 --- a/main.c +++ b/main.c @@ -7,6 +7,7 @@ #include #include #include +#include #include "razor.h" static const char *repo_filename = "system.repo"; diff --git a/razor.c b/razor.c index e4841d2..5e751b1 100644 --- a/razor.c +++ b/razor.c @@ -1069,7 +1069,6 @@ razor_property_iterator_next(struct razor_property_iterator *pi, enum razor_property_type *type) { char *pool; - unsigned long flags, index; int valid; struct razor_property *p, *properties; diff --git a/test-driver.c b/test-driver.c index fa548b3..6eb40f5 100644 --- a/test-driver.c +++ b/test-driver.c @@ -188,7 +188,7 @@ verify_end(struct test_context *ctx) { struct razor_package *package; struct razor_property *property; - const char *name, *version, *ref_name, *ref_version; + const char *name, *version; enum razor_property_type type; if (ctx->package_iterator != NULL) { @@ -287,7 +287,6 @@ static void start_test_element(void *data, const char *element, const char **atts) { struct test_context *ctx = data; - struct razor_set *set; const char *name; if (strcmp(element, "import") == 0) { @@ -322,7 +321,6 @@ end_test_element (void *data, const char *element) int main(int argc, char *argv[]) { struct test_context ctx; - struct test_set *set; if (argc != 2) { fprintf(stderr, "usage: %s TESTS-FILE\n", argv[0]);