Various tweaks to support building with excessive GCC warning flags
commita8a1b093eb23450244418232c9e30c4be035fc0b
authorDan McGee <dan@archlinux.org>
Sat, 7 Apr 2012 18:01:13 +0000 (7 13:01 -0500)
committerDave Reisner <dreisner@archlinux.org>
Mon, 9 Apr 2012 02:28:45 +0000 (8 22:28 -0400)
tree632a47273f1c4678984d66ecce0c41b6cb7ece1d
parentec91133e38cb7c486ec995d4183f30e84f3ca736
Various tweaks to support building with excessive GCC warning flags

This fixes a bunch of small issues in order to enable a clean
successful build with a crazy number of GCC warning flags. A lot of
these changes are covered by -Wshadow, -Wformat-security, and
-Wstrict-overflow=5.

Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/deps.c
lib/libalpm/trans.c
lib/libalpm/util.c
lib/libalpm/util.h
src/pacman/conf.c
src/pacman/pacman.c
src/pacman/sync.c
src/pacman/util.c