mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 16:21:29 +00:00
c62240aa80
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. |
||
---|---|---|
.. | ||
vcpkg | ||
all_the_debug_macros.cmake | ||
ca_certificates_data.cmake | ||
check_for_dependencies.cmake | ||
clang_development.cmake | ||
code_generators.cmake | ||
common_compile_options.cmake | ||
common_options.cmake | ||
download_icc_profiles.cmake | ||
flac_spec_tests.cmake | ||
fontconfig.cmake | ||
lagom-install-config.cmake | ||
lagom_compile_options.cmake | ||
lagom_install_options.cmake | ||
lagom_options.cmake | ||
libtextcodec_generators.cmake | ||
libweb_generators.cmake | ||
processor-count.cmake | ||
public_suffix.cmake | ||
setup_ccache.cmake | ||
unicode_data.cmake | ||
use_linker.cmake | ||
utils.cmake | ||
vulkan.cmake | ||
wasm_spec_tests.cmake |