Daniel Bertalan
c62240aa80
Everywhere: Warn on function definitions without prototypes
...
If no header includes the prototype of a function, then it cannot be
used from outside the translation unit it was defined in. In that case,
it should be marked as `static`, in order to avoid possible ODR
problems, unnecessary exported symbols, and allow the compiler to better
optimize those.
If this warning triggers in a function defined in a header, `inline`
needs to be added, otherwise if the header is included in more than one
TU, it will fail to link with a duplicate definition error.
The reason this diff got so big is that Lagom-only code wasn't built
with this flag even in Serenity times.
2024-07-17 21:51:29 +02:00
..
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2024-05-13 23:45:45 +01:00
2024-05-22 21:55:34 -06:00
2024-05-13 23:45:45 +01:00
2024-04-27 18:29:35 -04:00
2024-01-04 10:10:44 +01:00
2023-11-11 08:51:51 +01:00
2024-04-16 07:40:01 +02:00
2023-11-19 22:00:48 +01:00
2024-03-09 16:13:32 +01:00
2024-03-09 16:13:32 +01:00
2024-04-27 18:29:35 -04:00
2024-03-16 14:27:59 +01:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2023-11-11 08:51:51 +01:00
2024-06-23 19:52:45 +02:00
2024-06-23 19:52:45 +02:00
2023-12-23 20:41:41 +01:00
2024-03-11 18:29:10 +01:00
2023-11-11 08:51:51 +01:00
2024-03-16 16:35:54 +01:00
2023-11-19 22:00:48 +01:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2024-07-12 11:57:33 +03:00
2024-07-10 10:27:31 +02:00
2024-06-26 06:13:29 +02:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2024-06-04 09:19:39 +02:00
2024-04-22 17:10:11 +02:00
2023-11-19 22:00:48 +01:00
2023-11-19 22:00:48 +01:00
2024-06-03 10:53:32 +02:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2023-11-19 22:00:48 +01:00
2023-11-19 22:00:48 +01:00
2024-05-19 16:24:11 +02:00
2024-05-19 16:24:11 +02:00
2024-05-19 16:24:11 +02:00
2024-05-16 20:31:23 +02:00
2024-01-12 09:11:18 +01:00
2024-07-17 21:51:29 +02:00
2024-07-10 07:04:08 +02:00
2024-06-26 06:13:29 +02:00
2024-06-23 19:15:24 +02:00
2024-04-27 18:29:35 -04:00
2024-04-08 14:25:08 +02:00
2023-12-02 22:54:53 +01:00
2024-02-25 10:17:25 +01:00
2024-06-22 17:39:53 +02:00
2024-04-09 09:13:06 +02:00
2024-05-27 17:33:29 +02:00
2024-05-22 21:55:34 -06:00
2024-04-27 18:29:35 -04:00
2024-05-22 21:55:34 -06:00
2024-01-18 14:00:06 +01:00
2024-04-09 09:13:06 +02:00
2024-04-09 09:13:06 +02:00
2024-05-07 16:45:28 -06:00
2024-05-22 21:55:34 -06:00
2024-04-27 18:29:35 -04:00
2024-04-09 09:13:06 +02:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2024-04-27 18:29:35 -04:00
2024-04-14 22:08:22 +02:00
2024-01-03 10:13:47 +01:00
2024-07-14 11:49:31 +02:00
2024-07-13 09:35:54 +02:00
2024-07-17 18:19:09 +01:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2023-11-11 08:51:51 +01:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2024-04-27 18:29:35 -04:00
2024-01-12 09:11:18 +01:00
2023-12-17 18:25:10 +03:30
2024-05-07 16:45:28 -06:00
2024-05-12 07:28:09 +01:00
2024-05-12 07:28:09 +01:00
2024-06-23 19:52:45 +02:00
2024-02-24 08:09:01 +01:00
2024-04-27 18:29:35 -04:00
2023-12-24 13:26:50 +01:00
2024-03-16 16:35:54 +01:00
2024-05-22 21:55:34 -06:00
2024-06-26 05:41:00 +02:00
2024-05-12 07:28:09 +01:00
2024-06-26 05:41:00 +02:00
2024-06-26 06:13:29 +02:00
2024-06-26 06:13:29 +02:00
2024-06-26 06:13:29 +02:00
2024-06-25 19:22:35 +02:00
2023-11-11 08:51:51 +01:00
2024-04-16 07:40:01 +02:00
2023-11-19 22:00:48 +01:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2024-04-16 07:41:33 +02:00
2024-04-16 07:41:33 +02:00
2024-04-27 18:29:35 -04:00
2024-04-26 20:01:58 +02:00
2024-07-17 18:19:09 +01:00
2024-04-27 18:29:35 -04:00
2023-11-19 22:00:48 +01:00
2024-03-18 14:06:28 -04:00
2024-03-18 14:06:28 -04:00