summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-04-30 19:34:49 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-04-30 19:34:49 +0000
commit8994dc436140e9e538fad9763c0076c24332649a (patch)
tree7a5f63559ef7601e58d7dd825ed95770b36ad5ca
parentf06689ce617261ceed32e279a5ce22d33e4c2b68 (diff)
downloadmtk-20170518-8994dc436140e9e538fad9763c0076c24332649a.zip
mtk-20170518-8994dc436140e9e538fad9763c0076c24332649a.tar.gz
mtk-20170518-8994dc436140e9e538fad9763c0076c24332649a.tar.bz2
uci: increase argv size in batch mode to silence a false gcc 4.4 compiler warning
SVN-Revision: 15521
-rw-r--r--package/uci/patches/100-gcc_warning.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/uci/patches/100-gcc_warning.patch b/package/uci/patches/100-gcc_warning.patch
new file mode 100644
index 0000000..9ac5144
--- /dev/null
+++ b/package/uci/patches/100-gcc_warning.patch
@@ -0,0 +1,11 @@
+--- a/cli.c
++++ b/cli.c
+@@ -462,7 +462,7 @@
+
+ static int uci_batch_cmd(void)
+ {
+- char *argv[MAX_ARGS];
++ char *argv[MAX_ARGS + 2];
+ char *str = NULL;
+ int ret = 0;
+ int i, j;