mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-03 17:02:56 +00:00
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. |
||
---|---|---|
.. | ||
AbstractOperations.cpp | ||
AbstractOperations.h | ||
Buffers.cpp | ||
Buffers.h | ||
CallbackType.cpp | ||
CallbackType.h | ||
DOMException.cpp | ||
DOMException.h | ||
DOMException.idl | ||
ExceptionOr.h | ||
Function.idl | ||
ObservableArray.cpp | ||
ObservableArray.h | ||
OverloadResolution.cpp | ||
OverloadResolution.h | ||
Promise.cpp | ||
Promise.h | ||
Tracing.cpp | ||
Tracing.h | ||
Types.h |