From fbb83e78c0ca90b09e1e9c0a76030f46f419dcaf Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 19 Oct 2012 05:43:38 +0000 Subject: Fix warnings found by -Wmising-variable-declarations. This self-written compiler warning, which is hopefully going to be committed into LLVM sources soon, warns about potentially missing `static' keywords, similar to -Wmissing-prototypes. - bin/pax: Move external declaration of chdname and s_mask into extern.h. - bin/setfacl: Move setfacl.c-specific stuff out of setfacl.h. - sbin/mount_fusefs: Remove char *progname; use getprogname(). - others: add `static' where possible. --- lib/libelf/elf_errmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libelf') diff --git a/lib/libelf/elf_errmsg.c b/lib/libelf/elf_errmsg.c index 05947a7..193a602 100644 --- a/lib/libelf/elf_errmsg.c +++ b/lib/libelf/elf_errmsg.c @@ -36,7 +36,7 @@ __FBSDID("$FreeBSD$"); * Retrieve a human readable translation for an error message. */ -const char *_libelf_errors[] = { +static const char *_libelf_errors[] = { #define DEFINE_ERROR(N,S) [ELF_E_##N] = S DEFINE_ERROR(NONE, "No Error"), DEFINE_ERROR(ARCHIVE, "Malformed ar(1) archive"), -- cgit v1.1