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
..
2017-11-19 19:08:15 +01:00
2018-01-11 14:44:31 +01:00
2017-04-25 08:49:16 -04:00
2017-11-28 20:21:15 +09:00
2017-11-28 20:21:15 +09:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-04-25 08:49:16 -04:00
2018-01-04 13:27:27 +01:00
2017-12-25 11:48:21 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-12-25 11:48:21 +01:00
2017-12-25 11:48:21 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-12-18 11:19:32 +01:00
2017-12-25 11:48:21 +01:00
2017-12-19 15:22:05 +01:00
2018-01-12 14:44:45 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-01-11 14:44:31 +01:00
2017-11-20 10:57:41 +01:00
2017-11-28 22:06:34 +09:00
2017-11-19 19:08:15 +01:00
2017-04-25 08:49:16 -04:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-12-16 13:28:22 +01:00
2017-11-25 17:08:21 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-12-11 16:05:40 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-12-06 10:32:32 +09:00
2017-12-06 10:32:42 +09:00
2017-11-30 20:43:25 +01:00
2017-11-30 20:43:25 +01:00
2018-01-05 13:58:32 +01:00
2017-12-11 16:05:40 +01:00
2017-12-25 11:48:21 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-01-11 14:44:31 +01:00
2018-01-02 02:23:24 +09:00
2017-04-25 08:49:16 -04:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-01-11 14:44:31 +01:00
2017-11-19 19:08:15 +01:00
2018-01-10 20:52:55 +09:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-12-25 11:48:21 +01:00
2017-11-19 19:49:11 +01:00
2017-11-19 19:08:15 +01:00
2017-11-29 12:34:12 +01:00
2018-01-10 17:11:19 +01:00
2017-12-13 15:03:41 -02:00
2017-11-19 19:08:15 +01:00
2018-01-21 19:19:28 +09:00
2018-01-11 15:12:16 +01:00
2018-01-03 12:09:45 +01:00
2018-01-03 12:09:45 +01:00
2017-12-25 19:48:49 +01:00
2017-12-25 19:48:49 +01:00
2017-12-25 19:48:49 +01:00
2017-12-25 19:48:49 +01:00
2017-11-20 13:06:25 -08:00
2017-12-25 19:48:49 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-01-11 14:44:31 +01:00
2016-02-20 22:42:29 +01:00
2018-01-11 14:44:31 +01:00
2017-11-19 19:08:15 +01:00
2018-02-02 14:34:00 +01:00
2018-01-27 13:11:50 -08:00
2017-12-06 00:42:58 +09:00
2017-11-19 19:08:15 +01:00
2017-12-13 18:00:46 +01:00
2018-01-11 14:44:31 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-01-05 13:55:08 +01:00
2017-11-19 19:08:15 +01:00
2015-11-18 23:09:02 +01:00
2018-01-11 14:44:31 +01:00
2017-11-19 19:08:15 +01:00
2017-11-24 10:31:49 +00:00
2017-11-19 19:08:15 +01:00
2017-12-24 11:59:58 +01:00
2017-12-19 15:22:05 +01:00
2017-11-22 10:38:05 +01:00
2017-11-19 19:08:15 +01:00
2018-01-16 11:53:43 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-01-27 18:01:51 +00:00
2018-01-27 18:01:51 +00:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-01-04 13:44:39 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-01-22 16:26:55 +01:00
2018-01-10 12:31:39 +01:00
2018-01-04 13:27:27 +01:00
2017-12-16 13:32:42 +01:00
2017-12-16 13:28:22 +01:00
2017-12-16 13:28:22 +01:00
2017-11-19 19:08:15 +01:00
2017-12-14 19:02:29 +01:00
2017-12-05 13:49:12 +01:00
2017-11-20 13:06:25 -08:00
2015-06-11 10:52:46 +02:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-01-16 11:53:43 +01:00
2017-11-19 19:08:15 +01:00
2018-01-17 11:17:55 +01:00
2018-01-17 11:16:31 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:49:11 +01:00
2017-11-19 19:08:15 +01:00
2018-01-12 17:50:02 +01:00
2018-01-25 10:24:35 +01:00
2018-01-22 16:26:55 +01:00
2018-01-22 16:26:55 +01:00
2018-01-11 14:44:31 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-01-04 13:27:26 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-01-10 17:21:15 +01:00
2018-01-11 14:44:31 +01:00
2018-01-02 02:23:24 +09:00
2015-06-11 10:52:46 +02:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-12-01 16:49:52 -08:00
2017-11-28 21:30:30 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-12-14 19:02:29 +01:00
2018-01-02 02:23:24 +09:00
2017-11-20 13:06:25 -08:00
2016-01-11 19:39:59 +01:00
2017-12-16 13:28:22 +01:00
2017-11-19 19:08:15 +01:00
2018-01-05 13:55:08 +01:00
2017-12-23 19:32:04 +09:00
2017-12-23 19:32:04 +09:00
2017-12-23 19:32:04 +09:00
2018-01-11 14:44:31 +01:00
2018-01-05 13:55:08 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-01-11 14:44:31 +01:00
2017-12-13 10:21:06 +00:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-01-28 14:50:01 +01:00
2018-01-28 14:50:01 +01:00
2018-02-01 10:11:02 +01:00
2018-02-01 10:11:02 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-01-04 13:27:27 +01:00
2017-11-19 19:08:15 +01:00
2018-01-11 14:44:31 +01:00
2017-11-20 10:53:26 +01:00
2017-11-19 19:08:15 +01:00
2017-12-18 13:03:11 -08:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-12-15 14:57:07 +01:00
2017-11-19 19:08:15 +01:00
2018-01-10 18:26:03 +01:00
2018-01-10 18:26:03 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2018-01-22 16:26:55 +01:00
2018-01-10 18:44:09 +01:00
2018-01-11 14:44:31 +01:00
2017-12-14 16:12:14 -05:00
2018-01-16 23:00:39 +09:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-12-14 19:02:29 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00