diff options
| author | Yousong Zhou | 2019-06-14 01:28:54 +0000 |
|---|---|---|
| committer | Yousong Zhou | 2019-06-14 01:30:02 +0000 |
| commit | dcbc142e51f5f5f2fb9e4e44657e013d3c36a52b (patch) | |
| tree | fc2c49d2594a0fb6c2514983f40746783ac9d03b | |
| parent | 21b7bd73ae88ba2ce9a5bfeedf67bc204d10fd08 (diff) | |
| download | opkg-lede-dcbc142e51f5f5f2fb9e4e44657e013d3c36a52b.tar.gz | |
alternatives: remove duplicate 'const' specifier
To quash warnings from GCC 7.
/home/yunion/git-repo/openwrt/openwrt/build_dir/target-mips_24kc_musl/linux-malta_be/opkg-2019-06-14-21b7bd73/libopkg/pkg_alternatives.c:35:42: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
static const struct alternative_provider const providers[] = {
^~~~~
Signed-off-by: Yousong Zhou <zhouyousong@yunionyun.com>
| -rw-r--r-- | libopkg/pkg_alternatives.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopkg/pkg_alternatives.c b/libopkg/pkg_alternatives.c index 5891616..24efedf 100644 --- a/libopkg/pkg_alternatives.c +++ b/libopkg/pkg_alternatives.c @@ -32,7 +32,7 @@ struct alternative_provider { char *altpath; }; -static const struct alternative_provider const providers[] = { +static const struct alternative_provider providers[] = { { .name = "busybox", .altpath = "/bin/busybox", |