From owner-svn-ports-all@FreeBSD.ORG Sat Apr 20 21:44:05 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 52764E5E; Sat, 20 Apr 2013 21:44:05 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 2B5AFFB2; Sat, 20 Apr 2013 21:44:05 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r3KLi42W039447; Sat, 20 Apr 2013 21:44:04 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r3KLi45s039446; Sat, 20 Apr 2013 21:44:04 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201304202144.r3KLi45s039446@svn.freebsd.org> From: Baptiste Daroussin Date: Sat, 20 Apr 2013 21:44:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r316166 - head/ports-mgmt/pkg/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Apr 2013 21:44:05 -0000 Author: bapt Date: Sat Apr 20 21:44:04 2013 New Revision: 316166 URL: http://svnweb.freebsd.org/changeset/ports/316166 Log: Fix build after addition of -Wmissing-variable-declarations to WARNS=6 in HEAD Submitted by: ed Feature safe: yes Added: head/ports-mgmt/pkg/files/ head/ports-mgmt/pkg/files/patch-Wmissing-variable-declarations (contents, props changed) Added: head/ports-mgmt/pkg/files/patch-Wmissing-variable-declarations ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/ports-mgmt/pkg/files/patch-Wmissing-variable-declarations Sat Apr 20 21:44:04 2013 (r316166) @@ -0,0 +1,56 @@ +--- libpkg/pkg_elf.c ++++ libpkg/pkg_elf.c +@@ -468,7 +468,7 @@ + } + + static const char * +-elf_corres_to_string(struct _elf_corres* m, int e) ++elf_corres_to_string(const struct _elf_corres* m, int e) + { + int i = 0; + +--- libpkg/private/elf_tables.h ++++ libpkg/private/elf_tables.h +@@ -30,7 +30,7 @@ + const char *string; + }; + +-struct _elf_corres mach_corres[] = { ++static const struct _elf_corres mach_corres[] = { + { EM_386, "x86" }, + { EM_X86_64, "x86" }, + { EM_ARM, "arm" }, +@@ -42,19 +42,19 @@ + { -1, NULL }, + }; + +-struct _elf_corres wordsize_corres[] = { ++static const struct _elf_corres wordsize_corres[] = { + { ELFCLASS32, "32" }, + { ELFCLASS64, "64" }, + { -1, NULL}, + }; + +-struct _elf_corres endian_corres[] = { ++static const struct _elf_corres endian_corres[] = { + { ELFDATA2MSB, "eb" }, + { ELFDATA2LSB, "el" }, + { -1, NULL} + }; + +-struct _elf_corres os_corres[] = { ++static const struct _elf_corres os_corres[] = { + { ELFOSABI_FREEBSD, "freebsd" }, + { -1, NULL } + }; +--- pkg/main.c ++++ pkg/main.c +@@ -90,7 +90,7 @@ + { "which", "Displays which package installed a specific file", exec_which, usage_which}, + }; + +-const unsigned int cmd_len = (sizeof(cmd)/sizeof(cmd[0])); ++static const unsigned int cmd_len = sizeof(cmd) / sizeof(cmd[0]); + + static void + usage(void)