summaryrefslogtreecommitdiff
path: root/Userland/Tests
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@serenityos.org>2020-08-25 17:48:52 +0300
committerAndreas Kling <kling@serenityos.org>2020-08-30 17:35:27 +0200
commitf808810d00b9ffa955fc106e0ffd91606193c601 (patch)
tree8adece0b8a168cbb63c6eb538272bfe8c65f8bad /Userland/Tests
parent0106647ab8b6dd016e362a16ef35ded949125cf3 (diff)
downloadserenity-f808810d00b9ffa955fc106e0ffd91606193c601.zip
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.)
Diffstat (limited to 'Userland/Tests')
-rw-r--r--Userland/Tests/Kernel/elf-symbolication-kernel-read-exploit.cpp2
1 files changed, 2 insertions, 0 deletions
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];