debug/getwd_chk.c: warning should be emitted for the __getwd_chk symbol.

Otherwise the warning message for the getwd symbol ends up being duplicated.

Signed-off-by: Frederic Cambus <fred@statdns.com>
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
Frederic Cambus 2023-12-05 12:23:07 +01:00 committed by Andreas K. Hüttel
parent 5a85786a90
commit 9fd2ceb55d
No known key found for this signature in database
GPG Key ID: DC2B16215ED5412A

View File

@ -29,5 +29,5 @@ __getwd_chk (char *buf, size_t buflen)
return res; return res;
} }
link_warning (getwd, link_warning (__getwd_chk,
"the `getwd' function is dangerous and should not be used.") "the `getwd' function is dangerous and should not be used.")