Skip to content

Instantly share code, notes, and snippets.

@kaworu
Created March 20, 2013 14:56
Show Gist options
  • Save kaworu/5205315 to your computer and use it in GitHub Desktop.
Save kaworu/5205315 to your computer and use it in GitHub Desktop.
pkgng patch
diff --git a/pkg/fetch.c b/pkg/fetch.c
index f0c9dc4..12ddd08 100644
--- a/pkg/fetch.c
+++ b/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;
diff --git a/pkg/install.c b/pkg/install.c
index 6ee4a5e..51a34d6 100644
--- a/pkg/install.c
+++ b/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;
diff --git a/pkg/plugins.c b/pkg/plugins.c
index 1241e9c..e5ca601 100644
--- a/pkg/plugins.c
+++ b/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) {
diff --git a/pkg/upgrade.c b/pkg/upgrade.c
index 3bf6e83..8972ab5 100644
--- a/pkg/upgrade.c
+++ b/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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment