Fix a few warnings.
authorKristian Høgsberg <krh@redhat.com>
Fri, 11 Jan 2008 02:08:03 +0000 (21:08 -0500)
committerKristian Høgsberg <krh@redhat.com>
Fri, 11 Jan 2008 02:08:03 +0000 (21:08 -0500)
main.c
razor.c
test-driver.c

diff --git a/main.c b/main.c
index f43784c..7959617 100644 (file)
--- a/main.c
+++ b/main.c
@@ -7,6 +7,7 @@
 #include <unistd.h>
 #include <dirent.h>
 #include <curl/curl.h>
+#include <fnmatch.h>
 #include "razor.h"
 
 static const char *repo_filename = "system.repo";
diff --git a/razor.c b/razor.c
index e4841d2..5e751b1 100644 (file)
--- 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;
 
index fa548b3..6eb40f5 100644 (file)
@@ -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]);