aboutsummaryrefslogtreecommitdiff
path: root/lib/libelf
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2012-10-19 05:43:38 +0000
committerEd Schouten <ed@FreeBSD.org>2012-10-19 05:43:38 +0000
commitae824d80f28cd14c0c0ec75076c796e6a369bc18 (patch)
tree4ffbcf3b1f945e0ae5715cc8c2500ff622b14872 /lib/libelf
parent8241616dc534f6cf0c95abe6b61bc2bb0378fc91 (diff)
downloadsrc-ae824d80f28cd14c0c0ec75076c796e6a369bc18.tar.gz
src-ae824d80f28cd14c0c0ec75076c796e6a369bc18.zip
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.
Notes
Notes: svn path=/head/; revision=241720
Diffstat (limited to 'lib/libelf')
-rw-r--r--lib/libelf/elf_errmsg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libelf/elf_errmsg.c b/lib/libelf/elf_errmsg.c
index 05947a7cf28a..193a6024512e 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"),