From dcbc142e51f5f5f2fb9e4e44657e013d3c36a52b Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Fri, 14 Jun 2019 01:28:54 +0000 Subject: [PATCH] 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 --- libopkg/pkg_alternatives.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- 2.30.2