diff options
author | Sergey Bugaev <bugaevc@serenityos.org> | 2020-08-25 17:48:52 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-30 17:35:27 +0200 |
commit | f808810d00b9ffa955fc106e0ffd91606193c601 (patch) | |
tree | 8adece0b8a168cbb63c6eb538272bfe8c65f8bad /Userland/Tests | |
parent | 0106647ab8b6dd016e362a16ef35ded949125cf3 (diff) | |
download | serenity-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.cpp | 2 |
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]; |