Disable static linking warning for dlopen and dlmopen, and disable linking warning for sys_errlist and sys_nerr.

This commit is contained in:
Paul Pluzhnikov 2014-02-28 16:51:12 -08:00
parent 1a771e688f
commit 8eb1716c91
3 changed files with 10 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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";
}