Files
ladybird/AK
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-02-11 18:53:00 +01:00
2024-03-23 09:02:58 -04:00
2024-06-18 09:36:25 +02:00
2024-06-18 09:36:25 +02:00
2024-06-18 09:36:25 +02:00
2024-01-21 16:16:15 -07:00
2024-06-26 05:47:16 +02:00
2024-01-12 16:42:51 -07:00
2024-07-17 09:56:13 -06:00
2024-06-18 09:36:25 +02:00
2024-06-18 09:36:25 +02:00
2024-02-11 18:53:00 +01:00
2024-02-11 18:53:00 +01:00
2024-06-18 09:36:25 +02:00
2024-04-24 16:50:01 -04:00