1
0
mirror of https://github.com/moparisthebest/pacman synced 2025-02-28 09:21:53 -05:00
Rikard Falkeborn 34f3f1e7a6 Fix gcc strict-overflow error
Recent gcc (tested with 6.2.1) produces the following error when
compiling with both --enable-warningflags and --enable-debug.
In particular, it seems it is the combination of GCC_STACK_PROTECT_LIB
and -Wstrict-overflow=5 produces the error.

    be_local.c:609:4: error: assuming signed overflow does not occur
                             when simplifying conditional
                             [-Werror=strict-overflow]
    if(count > 0) {

Fix this by changing the type of count from int to size_t, which is
fine since count is never negative.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
2016-09-20 22:48:00 +10:00
..
2016-02-23 13:09:39 +10:00
2012-04-25 20:02:36 -04:00
2016-08-30 18:10:40 +10:00
2016-01-04 13:27:08 +10:00
2016-01-15 14:47:36 +10:00
2016-01-15 14:47:36 +10:00
2016-05-05 13:52:23 +10:00
2016-08-30 18:10:40 +10:00
2016-01-04 13:27:08 +10:00
2014-01-15 15:54:56 +10:00
2016-09-20 22:48:00 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-05-05 13:52:23 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-08-30 18:10:40 +10:00
2016-01-04 13:27:08 +10:00
2015-10-18 10:59:23 +10:00
2015-10-18 10:59:23 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2015-10-18 10:59:23 +10:00
2016-05-05 13:52:23 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00