diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-04-30 19:34:49 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-04-30 19:34:49 +0000 |
commit | 8994dc436140e9e538fad9763c0076c24332649a (patch) | |
tree | 7a5f63559ef7601e58d7dd825ed95770b36ad5ca /package/uci/patches/100-gcc_warning.patch | |
parent | f06689ce617261ceed32e279a5ce22d33e4c2b68 (diff) | |
download | mtk-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
Diffstat (limited to 'package/uci/patches/100-gcc_warning.patch')
-rw-r--r-- | package/uci/patches/100-gcc_warning.patch | 11 |
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; |