mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-06 01:21:08 +00:00
Disable static linking warning for dlopen and dlmopen, and disable linking warning for sys_errlist and sys_nerr.
This commit is contained in:
parent
1a771e688f
commit
8eb1716c91
@ -30,7 +30,9 @@ dlmopen (Lmid_t nsid, const char *file, int mode)
|
||||
{
|
||||
return __dlmopen (nsid, file, mode, RETURN_ADDRESS (0));
|
||||
}
|
||||
#if 0 // Google-local
|
||||
static_link_warning (dlmopen)
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
|
@ -29,7 +29,9 @@ dlopen (const char *file, int mode)
|
||||
{
|
||||
return __dlopen (file, mode, RETURN_ADDRESS (0));
|
||||
}
|
||||
#if 0 // Google-local
|
||||
static_link_warning (dlopen)
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
|
@ -126,8 +126,13 @@ versioned_symbol (libc, __sys_nerr_internal, _sys_nerr, %s);\n", \
|
||||
lastv, lastv, lastv, lastv;
|
||||
|
||||
print "\n\
|
||||
/* Google-local:\n\
|
||||
Disable deprecation warnings; they're emitted even if referenced\n\
|
||||
only by debug info. */\n\
|
||||
#if 0\n\
|
||||
link_warning (sys_errlist, \"\
|
||||
`sys_errlist' is deprecated; use `strerror' or `strerror_r' instead\")\n\
|
||||
link_warning (sys_nerr, \"\
|
||||
`sys_nerr' is deprecated; use `strerror' or `strerror_r' instead\")";
|
||||
`sys_nerr' is deprecated; use `strerror' or `strerror_r' instead\")\n\
|
||||
#endif";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user