From: Yousong Zhou Date: Fri, 14 Jun 2019 01:28:54 +0000 (+0000) Subject: alternatives: remove duplicate 'const' specifier X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dcbc142e51f5f5f2fb9e4e44657e013d3c36a52b;p=oweals%2Fopkg-lede.git 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 --- 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",