Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=486f3208cabf24a14fa27d638a67481190cb3094
commit 486f3208cabf24a14fa27d638a67481190cb3094 Author: Miklos Vajna <[email protected]> Date: Wed Feb 3 21:15:40 2016 +0100 -Werror=return-type diff --git a/configure.ac b/configure.ac index 874ce08..cce2e79 100644 --- a/configure.ac +++ b/configure.ac @@ -439,10 +439,10 @@ if test x$strict = xyes ; then -Wredundant-decls -Wunused-variable -Wunused-parameter \ -Wparentheses -Wno-long-long -Wwrite-strings -Wimplicit \ -Wnested-externs -Wno-unused -Wundef -Wpacked \ - -Wbad-function-cast -Wunused-function -Wunused-label \ + -Wunused-function -Wunused-label \ -Wunused-value -Wfloat-equal -Wchar-subscripts -Wswitch \ -Wmissing-braces -Wsequence-point -Wunknown-pragmas \ - -Wdeclaration-after-statement -Wsign-compare" + -Wdeclaration-after-statement -Wsign-compare -Wno-deprecated-declarations" AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) diff --git a/lib/libpacman/package.c b/lib/libpacman/package.c index 13d034b..75539eb 100644 --- a/lib/libpacman/package.c +++ b/lib/libpacman/package.c @@ -645,7 +645,7 @@ pmlist_t *_pacman_pkg_getowners(char *filename) return(ret); } -int _pacman_pkg_filename(char *str, size_t size, const pmpkg_t *pkg) +void _pacman_pkg_filename(char *str, size_t size, const pmpkg_t *pkg) { snprintf(str, size, "%s-%s-%s%s", pkg->name, pkg->version, pkg->arch, PM_EXT_PKG); diff --git a/lib/libpacman/package.h b/lib/libpacman/package.h index 54f8c09..1d3448a 100644 --- a/lib/libpacman/package.h +++ b/lib/libpacman/package.h @@ -103,7 +103,7 @@ int _pacman_pkg_splitname(char *target, char *name, char *version, int witharch) void *_pacman_pkg_getinfo(pmpkg_t *pkg, unsigned char parm); pmlist_t *_pacman_pkg_getowners(char *filename); -int _pacman_pkg_filename(char *str, size_t size, const pmpkg_t *pkg); +void _pacman_pkg_filename(char *str, size_t size, const pmpkg_t *pkg); #endif /* _PACMAN_PACKAGE_H */ _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
