pkgsrc/devel/elftoolchain/patches/patch-ab
agc f15d9e1fe6 Initial import of elftoolchain-0.5.1 into the packages collection.
A BSD-licensed implementation of compilation tools (nm, ar,
	as, ld, etc.) for the ELF object format.

	This release contains BSD-licensed implementations of the
	"libdwarf" and "libelf" libraries, and of the "addr2line",
	"ar", "brandelf", "c++filt", "elfcopy", "elfdump",
	"findtextrel", "mcs", "nm", "ranlib", "readelf", "size",
	"strings" and "strip" program development utilities.  The
	release also contains API and utility reference documentation
	(300+ manual entries in all), and contains test suites for
	some of these released utilities and libraries.

With thanks to jkoshy for all the help.
2011-11-20 06:25:17 +00:00

48 lines
1.1 KiB
Text

$NetBSD: patch-ab,v 1.1.1.1 2011/11/20 06:25:18 agc Exp $
Fix warning for printf format messages with gcc 4.5 and -Wformat=2
--- ar/ar.c 2011/11/18 20:41:01 1.1
+++ ar/ar.c 2011/11/18 20:41:58
@@ -370,7 +370,7 @@
opt, bsdar->mode);
}
-static const char *ar_usagemsg = "\
+static const char ar_usagemsg[] = "\
Usage: %s <command> [options] archive file...\n\
Manage archives.\n\n\
Where <command> is one of:\n\
@@ -404,13 +404,13 @@
";
static void
-bsdar_usage()
+bsdar_usage(void)
{
(void) fprintf(stderr, ar_usagemsg, ELFTC_GETPROGNAME());
exit(EXIT_FAILURE);
}
-static const char *ranlib_usagemsg = "\
+static const char ranlib_usagemsg[] = "\
Usage: %s [options] archive...\n\
Update or create archive symbol tables.\n\n\
Options:\n\
@@ -420,14 +420,14 @@
";
static void
-ranlib_usage()
+ranlib_usage(void)
{
(void)fprintf(stderr, ranlib_usagemsg, ELFTC_GETPROGNAME());
exit(EXIT_FAILURE);
}
static void
-bsdar_version()
+bsdar_version(void)
{
(void)printf("%s (%s, %s)\n", ELFTC_GETPROGNAME(), archive_version(),
elftc_version());