From feec10d799b5a2e1d591102cf966344238818480 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 4 Sep 2011 15:30:34 +0200 Subject: [PATCH] fix compiler warnings --- config.c | 2 +- system-dummy.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config.c b/config.c index 2e00364..a8796af 100644 --- a/config.c +++ b/config.c @@ -73,7 +73,7 @@ static void uci_array_to_blob(struct blob_buf *b, struct uci_option *o, static void __uci_to_blob(struct blob_buf *b, struct uci_section *s, const struct config_param_list *p) { - const struct blobmsg_policy *attr; + const struct blobmsg_policy *attr = NULL; struct uci_element *e; struct uci_option *o; void *array; diff --git a/system-dummy.c b/system-dummy.c index 80f1734..eab9277 100644 --- a/system-dummy.c +++ b/system-dummy.c @@ -1,6 +1,10 @@ #include #include +#ifndef DEBUG +#define DEBUG +#endif + #include "netifd.h" #include "device.h" -- 2.25.1