From owner-svn-src-head@FreeBSD.ORG Fri Apr 19 19:38:41 2013 Return-Path: Delivered-To: svn-src-head@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 031644A5; Fri, 19 Apr 2013 19:38:41 +0000 (UTC) (envelope-from ed@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 D8AB61A5C; Fri, 19 Apr 2013 19:38:40 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r3JJceBC070550; Fri, 19 Apr 2013 19:38:40 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r3JJcekZ070531; Fri, 19 Apr 2013 19:38:40 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201304191938.r3JJcekZ070531@svn.freebsd.org> From: Ed Schouten Date: Fri, 19 Apr 2013 19:38:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r249656 - head/cddl/contrib/opensolaris/tools/ctf/cvt X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Apr 2013 19:38:41 -0000 Author: ed Date: Fri Apr 19 19:38:39 2013 New Revision: 249656 URL: http://svnweb.freebsd.org/changeset/base/249656 Log: Fix -Wmissing-variable-declarations compiler warnings. References: https://www.illumos.org/issues/3700 Modified: head/cddl/contrib/opensolaris/tools/ctf/cvt/ctf.c head/cddl/contrib/opensolaris/tools/ctf/cvt/st_parse.c head/cddl/contrib/opensolaris/tools/ctf/cvt/traverse.c head/cddl/contrib/opensolaris/tools/ctf/cvt/util.c Modified: head/cddl/contrib/opensolaris/tools/ctf/cvt/ctf.c ============================================================================== --- head/cddl/contrib/opensolaris/tools/ctf/cvt/ctf.c Fri Apr 19 19:28:48 2013 (r249655) +++ head/cddl/contrib/opensolaris/tools/ctf/cvt/ctf.c Fri Apr 19 19:38:39 2013 (r249656) @@ -47,7 +47,7 @@ * * The value is only valid during a call to ctf_load. */ -char *curfile; +static char *curfile; #define CTF_BUF_CHUNK_SIZE (64 * 1024) #define RES_BUF_CHUNK_SIZE (64 * 1024) Modified: head/cddl/contrib/opensolaris/tools/ctf/cvt/st_parse.c ============================================================================== --- head/cddl/contrib/opensolaris/tools/ctf/cvt/st_parse.c Fri Apr 19 19:28:48 2013 (r249655) +++ head/cddl/contrib/opensolaris/tools/ctf/cvt/st_parse.c Fri Apr 19 19:38:39 2013 (r249656) @@ -54,7 +54,7 @@ static int faketypenumber = 100000000; static tdesc_t *hash_table[BUCKETS]; static tdesc_t *name_table[BUCKETS]; -list_t *typedbitfldmems; +static list_t *typedbitfldmems; static void reset(void); static jmp_buf resetbuf; Modified: head/cddl/contrib/opensolaris/tools/ctf/cvt/traverse.c ============================================================================== --- head/cddl/contrib/opensolaris/tools/ctf/cvt/traverse.c Fri Apr 19 19:28:48 2013 (r249655) +++ head/cddl/contrib/opensolaris/tools/ctf/cvt/traverse.c Fri Apr 19 19:38:39 2013 (r249656) @@ -37,8 +37,8 @@ #include "traverse.h" #include "memory.h" -int (*tddescenders[])(tdesc_t *, tdtrav_data_t *); -tdtrav_cb_f tdnops[]; +static int (*tddescenders[])(tdesc_t *, tdtrav_data_t *); +static tdtrav_cb_f tdnops[]; void tdtrav_init(tdtrav_data_t *tdtd, int *vgenp, tdtrav_cb_f *firstops, @@ -111,7 +111,7 @@ tdtrav_assert(tdesc_t *node __unused, td return (-1); } -tdtrav_cb_f tdnops[] = { +static tdtrav_cb_f tdnops[] = { NULL, NULL, /* intrinsic */ NULL, /* pointer */ @@ -128,7 +128,7 @@ tdtrav_cb_f tdnops[] = { NULL /* restrict */ }; -int (*tddescenders[])(tdesc_t *, tdtrav_data_t *) = { +static int (*tddescenders[])(tdesc_t *, tdtrav_data_t *) = { NULL, NULL, /* intrinsic */ tdtrav_plain, /* pointer */ Modified: head/cddl/contrib/opensolaris/tools/ctf/cvt/util.c ============================================================================== --- head/cddl/contrib/opensolaris/tools/ctf/cvt/util.c Fri Apr 19 19:28:48 2013 (r249655) +++ head/cddl/contrib/opensolaris/tools/ctf/cvt/util.c Fri Apr 19 19:38:39 2013 (r249656) @@ -249,8 +249,8 @@ tdesc_name(tdesc_t *tdp) return (tdp->t_name == NULL ? "(anon)" : tdp->t_name); } -char *watch_address = NULL; -int watch_length = 0; +static char *watch_address = NULL; +static int watch_length = 0; void watch_set(void *addr, int len)