From f808810d00b9ffa955fc106e0ffd91606193c601 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Tue, 25 Aug 2020 17:48:52 +0300 Subject: LibC: Deprecate strcpy(), strncpy(), strcat() and strncat() :^) And also mark strlcpy() and strlcat() with __attribute__((warn_unused_result)). Since our code is warning-free, this ensures we never misuse those functions. (Or are very sure about doing it when turning off the warning for a particular piece of code.) --- Userland/Tests/Kernel/elf-symbolication-kernel-read-exploit.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Userland/Tests') diff --git a/Userland/Tests/Kernel/elf-symbolication-kernel-read-exploit.cpp b/Userland/Tests/Kernel/elf-symbolication-kernel-read-exploit.cpp index 3f44b0446d..d4ccbf1ac6 100644 --- a/Userland/Tests/Kernel/elf-symbolication-kernel-read-exploit.cpp +++ b/Userland/Tests/Kernel/elf-symbolication-kernel-read-exploit.cpp @@ -37,6 +37,8 @@ asm("haxcode:\n" extern "C" void haxcode(); extern "C" void haxcode_end(); +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + int main() { char buffer[16384]; -- cgit v1.2.3