mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00:00
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.)
This commit is contained in:
parent
0106647ab8
commit
f808810d00
3 changed files with 25 additions and 3 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue