Files
systemd/src/basic
Zbigniew Jędrzejewski-Szmek afbbc0682e basic/hashmap: tweak code to avoid pointless gcc warning
gcc says:
[196/1142] Compiling C object 'src/basic/basic@sta/hashmap.c.o'.
../src/basic/hashmap.c: In function ‘cachemem_maintain’:
../src/basic/hashmap.c:1913:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
                 mem->active = r = true;
                 ^~~

which conflates two things: the first is transitive assignent a = b = c = d;
the second is assignment of the value of an expression, which happens to be a
an assignment expression here, and boolean. While the second _should_ be
parenthesized, the first should _not_, and it's more natural to understand
our code as the first, and gcc should treat this as an exception and not emit
the warning. But since it's a while until this will be fixed, let's update
our code too.
2018-02-02 14:34:00 +01:00
..
2018-01-11 14:44:31 +01:00
2017-11-28 20:21:15 +09:00
2017-11-28 20:21:15 +09:00
2018-01-12 14:44:45 +01:00
2018-01-11 14:44:31 +01:00
2017-11-30 20:43:25 +01:00
2018-01-11 14:44:31 +01:00
2018-01-10 17:11:19 +01:00
2018-01-03 12:09:45 +01:00
2018-01-03 12:09:45 +01:00
2018-01-11 14:44:31 +01:00
2018-01-11 14:44:31 +01:00
2018-01-27 13:11:50 -08:00
2015-11-18 23:09:02 +01:00
2018-01-11 14:44:31 +01:00
2018-01-11 14:44:31 +01:00
2018-01-11 14:44:31 +01:00
2018-02-01 10:11:02 +01:00
2018-02-01 10:11:02 +01:00
2018-01-11 14:44:31 +01:00
2017-12-15 14:57:07 +01:00
2018-01-11 14:44:31 +01:00