Skip to content

Instantly share code, notes, and snippets.

@kaworu
Created March 8, 2013 15:40
Show Gist options
  • Save kaworu/5117307 to your computer and use it in GitHub Desktop.
Save kaworu/5117307 to your computer and use it in GitHub Desktop.
gcc48 pkgng patch
diff --git a/libpkg/pkg_ports.c b/libpkg/pkg_ports.c
index afc4a00..e856c03 100644
--- a/libpkg/pkg_ports.c
+++ b/libpkg/pkg_ports.c
@@ -340,7 +340,7 @@ file(struct plist *p, char *line, struct file_attr *a)
cleanup:
free_file_attr(a);
- return (EPKG_OK);
+ return (ret);
}
static int
@kaworu
Copy link
Author

kaworu commented Mar 8, 2013

GCC complained that ret was unused. It it is expected that file() always return EPKG_OK then the ret variable should be discarded, and otherwise this patch (or another solution) should be applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment