mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
AK: Mark compilation-unit-only functions as static
This enables a nice warning in case a function becomes dead code. Also, add forgotten header to Base64.cpp, which would cause an issue later when we enable -Wmissing-declarations.
This commit is contained in:
parent
0248ddc427
commit
5fe6ca75ca
Notes:
sideshowbarker
2024-07-19 03:42:58 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/5fe6ca75cad Pull-request: https://github.com/SerenityOS/serenity/pull/3096 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/stelar7
2 changed files with 2 additions and 1 deletions
|
@ -24,6 +24,7 @@
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <AK/Base64.h>
|
||||
#include <AK/ByteBuffer.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
#include <AK/Stream.h>
|
||||
|
||||
bool compare(ReadonlyBytes lhs, ReadonlyBytes rhs)
|
||||
static bool compare(ReadonlyBytes lhs, ReadonlyBytes rhs)
|
||||
{
|
||||
if (lhs.size() != rhs.size())
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue