Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Add __unused to some variables in exec_* functions in order to build with gcc48.
Alexandre Perrin committed 13 years ago
commit fae220d61e0e724d7b28c16641c9374c61a377aa
parent d95ce4c
4 files changed +4 -4
modified pkg/fetch.c
@@ -55,7 +55,7 @@ exec_fetch(int argc, char **argv)
{
	struct pkgdb	*db = NULL;
	struct pkg_jobs	*jobs = NULL;
-
	const char	*reponame = NULL;
+
	const char	__unused *reponame = NULL;
	int		 ch;
	int		 retcode = EX_SOFTWARE;
	bool		 auto_update;
modified pkg/install.c
@@ -56,7 +56,7 @@ exec_install(int argc, char **argv)
{
	struct pkgdb *db = NULL;
	struct pkg_jobs *jobs = NULL;
-
	const char *reponame = NULL;
+
	const char __unused *reponame = NULL;
	int retcode;
	int updcode = EPKG_OK;
	int ch;
modified pkg/plugins.c
@@ -45,7 +45,7 @@ exec_plugins(__unused int argc, __unused char **argv)
{
	struct pkg_plugin *p = NULL;
	int ch;
-
	bool list_only = true;
+
	bool __unused list_only = true;

	while ((ch = getopt(argc, argv, "l")) != -1) {
                switch (ch) {
modified pkg/upgrade.c
@@ -48,7 +48,7 @@ exec_upgrade(__unused int argc, __unused char **argv)
{
	struct pkgdb *db = NULL;
	struct pkg_jobs *jobs = NULL;
-
	const char *reponame = NULL;
+
	const char __unused *reponame = NULL;
	int retcode;
	int updcode;
	int ch;