Willy Tarreau
822d45678f
BUILD: server: shut a bogus gcc warning on certain ubuntu
...
On ubuntu 20.04 and 22.04 with gcc 9.4 and 11.4 respectively, we get
the following warning:
src/server.c: In function 'srv_update_addr_port':
src/server.c:4027:3: warning: 'new_port' may be used uninitialized in this function [-Wmaybe-uninitialized]
4027 | _srv_event_hdl_prepare_inetaddr(&cb_data.addr, &s->addr, s->svc_port,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4028 | ((ip_change) ? &sa : &s->addr),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4029 | ((port_change) ? new_port : s->svc_port),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4030 | 1);
| ~~
It's clearly wrong, port_change only changes from 0 to anything else
*after* assigning new_port. Let's just preset new_port to zero instead
of trying to play smart with the compiler.
2023-11-30 17:48:03 +01:00
..
2023-11-23 16:23:14 +01:00
2023-09-28 08:49:22 +02:00
2023-11-14 11:46:37 +01:00
2023-11-17 15:36:43 +01:00
2022-11-22 16:27:52 +01:00
2022-11-24 15:24:02 +01:00
2023-11-30 17:15:54 +01:00
2023-11-28 17:18:48 +01:00
2023-04-27 18:14:57 +02:00
2023-04-23 09:46:15 +02:00
2023-11-24 09:33:56 +01:00
2023-11-24 16:27:55 +01:00
2023-11-13 19:56:28 +01:00
2023-10-23 22:03:55 +02:00
2023-06-06 15:15:17 +02:00
2023-11-23 17:40:01 +01:00
2023-10-17 18:51:13 +02:00
2023-11-23 16:23:14 +01:00
2023-09-08 16:25:19 +02:00
2023-11-29 15:09:29 +01:00
2023-05-17 09:33:54 +02:00
2023-06-30 16:12:36 +02:00
2023-11-23 17:43:01 +01:00
2023-09-08 16:25:19 +02:00
2023-11-23 16:23:14 +01:00
2023-10-18 17:01:19 +02:00
2023-05-05 15:44:23 +02:00
2023-11-23 16:23:14 +01:00
2023-11-09 14:39:11 +01:00
2022-09-21 09:06:28 +02:00
2022-09-21 09:06:28 +02:00
2022-09-21 09:06:28 +02:00
2022-09-09 11:15:22 +02:00
2023-11-29 08:59:27 +01:00
2023-11-23 16:53:57 +01:00
2023-11-18 11:16:21 +01:00
2022-12-09 12:23:14 +01:00
2023-04-13 18:04:46 +02:00
2023-11-18 11:16:21 +01:00
2023-11-23 16:23:14 +01:00
2023-11-29 08:59:27 +01:00
2023-10-13 10:05:06 +02:00
2023-04-27 18:22:34 +02:00
2023-11-08 16:38:06 +01:00
2023-10-26 15:18:48 +02:00
2023-10-04 15:34:18 +02:00
2023-10-04 15:34:18 +02:00
2023-10-17 18:51:13 +02:00
2023-11-29 09:24:20 +01:00
2023-11-27 17:15:14 +01:00
2022-11-14 11:14:02 +01:00
2023-11-23 16:23:14 +01:00
2023-11-23 16:23:14 +01:00
2023-02-14 08:48:54 +01:00
2023-01-26 11:36:39 +01:00
2023-11-24 07:42:43 +01:00
2023-11-29 11:11:12 +01:00
2023-11-29 11:11:12 +01:00
2023-11-30 17:15:54 +01:00
2023-04-01 18:33:40 +02:00
2023-07-06 15:41:17 +02:00
2023-11-29 11:11:12 +01:00
2023-11-18 11:16:21 +01:00
2023-05-11 15:37:04 +02:00
2023-11-03 09:57:06 +01:00
2023-11-23 16:23:14 +01:00
2023-03-08 10:43:04 +01:00
2023-11-23 16:23:14 +01:00
2023-08-29 11:11:50 +02:00
2023-11-30 15:04:27 +01:00
2023-11-29 11:11:12 +01:00
2023-05-05 16:28:32 +02:00
2023-11-27 15:03:41 +01:00
2023-05-11 09:22:46 +02:00
2023-11-29 11:11:12 +01:00
2023-11-29 11:11:12 +01:00
2023-11-29 11:11:12 +01:00
2023-11-29 11:11:12 +01:00
2023-11-29 11:11:12 +01:00
2023-04-28 16:08:08 +02:00
2023-11-24 21:44:25 +01:00
2023-06-14 11:27:29 +02:00
2023-05-12 09:45:30 +02:00
2023-11-27 11:25:07 +01:00
2023-07-03 16:32:01 +02:00
2023-11-23 16:23:14 +01:00
2023-11-23 16:23:14 +01:00
2023-11-06 20:49:56 +01:00
2023-11-29 11:11:12 +01:00
2023-04-21 17:41:26 +02:00
2023-04-23 09:46:15 +02:00
2023-10-18 17:01:19 +02:00
2023-02-23 15:05:05 +01:00
2023-04-21 17:41:26 +02:00
2023-08-17 15:44:03 +02:00
2023-11-24 16:27:55 +01:00
2023-11-24 07:42:43 +01:00
2023-03-22 16:08:54 +01:00
2023-05-09 18:42:34 +02:00
2022-11-24 15:38:26 +01:00
2023-04-28 16:08:08 +02:00
2023-10-11 14:15:31 +02:00
2023-11-28 15:37:50 +01:00
2023-11-28 15:37:50 +01:00
2023-11-28 15:37:50 +01:00
2022-10-03 16:25:17 +02:00
2023-11-30 15:04:27 +01:00
2023-11-28 15:37:22 +01:00
2023-11-28 15:47:18 +01:00
2023-11-09 10:32:31 +01:00
2023-11-28 15:37:50 +01:00
2023-11-23 16:23:14 +01:00
2023-11-28 15:47:18 +01:00
2023-11-28 15:47:18 +01:00
2023-11-30 15:04:27 +01:00
2023-11-28 15:37:50 +01:00
2023-11-28 15:37:50 +01:00
2023-05-26 17:17:00 +02:00
2023-05-12 16:26:20 +02:00
2023-11-28 15:37:22 +01:00
2023-11-30 15:59:45 +01:00
2023-11-23 16:23:14 +01:00
2023-11-28 15:47:18 +01:00
2023-10-17 18:51:13 +02:00
2022-09-01 19:34:46 +02:00
2023-11-10 17:49:57 +01:00
2023-11-23 16:23:14 +01:00
2023-11-23 16:23:14 +01:00
2023-07-21 15:08:27 +02:00
2023-11-30 17:48:03 +01:00
2023-11-23 16:23:14 +01:00
2023-11-17 16:56:18 +01:00
2023-11-23 16:23:14 +01:00
2023-11-23 16:23:14 +01:00
2023-06-30 16:12:36 +02:00
2023-04-23 09:46:15 +02:00
2023-11-20 11:38:26 +01:00
2023-11-20 11:38:26 +01:00
2023-11-23 16:23:14 +01:00
2023-05-05 00:05:46 +02:00
2023-03-31 09:10:36 +02:00
2023-07-17 15:45:41 +02:00
2023-11-24 20:07:27 +01:00
2023-05-15 12:07:52 +02:00
2023-10-17 18:51:13 +02:00
2023-11-30 17:15:54 +01:00
2023-11-18 11:16:21 +01:00
2023-11-30 17:15:54 +01:00
2023-11-23 16:23:14 +01:00
2023-11-30 15:04:27 +01:00
2023-11-18 11:16:21 +01:00
2023-07-24 17:12:29 +02:00
2023-11-10 17:49:57 +01:00
2023-11-16 19:35:10 +01:00
2023-11-30 16:48:41 +01:00
2023-11-27 17:15:14 +01:00
2023-11-23 16:23:14 +01:00
2023-02-17 16:01:34 +01:00
2023-11-20 16:11:26 +01:00