Created
March 8, 2013 15:40
-
-
Save kaworu/5117307 to your computer and use it in GitHub Desktop.
gcc48 pkgng patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GCC complained that
ret
was unused. It it is expected that file() always returnEPKG_OK
then theret
variable should be discarded, and otherwise this patch (or another solution) should be applied.