1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-21 23:38:49 -05:00

Fix thinko in configure.ac CFLAGS empty checking

Since commit d2669b47, CFLAGS specified on the command line haven't been
respected at all, resulting in no optimization being applied to builds.
This exposed one warning flag issue in some new code, which is also
fixed here.

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Dan McGee 2012-09-18 21:34:07 -05:00 committed by Allan McRae
parent b57ada336b
commit 1d0ab50c05
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ LIB_VERSION=`expr lib_current - lib_age`.lib_age.lib_revision
LIB_VERSION_INFO="lib_current:lib_revision:lib_age"
# Respect empty CFLAGS during compiler tests
if test "x$CFLAGS" != "x"; then
if test "x$CFLAGS" = "x"; then
CFLAGS=""
fi

View File

@ -134,7 +134,7 @@ static int query_fileowner(alpm_list_t *targets)
struct stat buf;
alpm_list_t *i;
size_t len;
int found = 0;
unsigned int found = 0;
if((filename = strdup(t->data)) == NULL) {
goto targcleanup;