diff options
author | 2023-01-10 17:32:55 +0100 | |
---|---|---|
committer | 2023-01-25 07:43:37 +0100 | |
commit | 66f3e65e8410b77f111dc7e0010c2ec21b9ee991 (patch) | |
tree | ea9c081165de1d460966a804aad65a7aacfa59bb /sys-devel | |
parent | sys-devel/bmake: add 20230120 (diff) | |
download | gentoo-66f3e65e8410b77f111dc7e0010c2ec21b9ee991.tar.gz gentoo-66f3e65e8410b77f111dc7e0010c2ec21b9ee991.tar.bz2 gentoo-66f3e65e8410b77f111dc7e0010c2ec21b9ee991.zip |
sys-devel/bmake: remove unused patch
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/29050
Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/bmake/files/bmake-20220418-warnings.patch | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/sys-devel/bmake/files/bmake-20220418-warnings.patch b/sys-devel/bmake/files/bmake-20220418-warnings.patch deleted file mode 100644 index 1fccb91e95a3..000000000000 --- a/sys-devel/bmake/files/bmake-20220418-warnings.patch +++ /dev/null @@ -1,38 +0,0 @@ -# https://bugs.gentoo.org/841362 -# -# Fix -Wimplicit-function-declaration and -Wunused-result warnings -# -# meta.c: In function ‘meta_name’: -# meta.c:262:21: warning: implicit declaration of function ‘strlcpy’; did you mean ‘strncpy’? [-Wimplicit-function-declaration] -# 262 | strlcpy(rp, tname_base, sizeof buf - (size_t)(rp - buf)); -# | ^~~~~~~ -# | strncpy -# -# meta.c: In function ‘meta_job_error’: -# meta.c:774:5: warning: ignoring return value of ‘getcwd’ declared with attribute ‘warn_unused_result’ [-Wunused-result] -# 774 | getcwd(cwd, sizeof cwd); -# | ^~~~~~~~~~~~~~~~~~~~~~~ - ---- a/meta.c -+++ b/meta.c -@@ -106,6 +106,10 @@ - char * stresep(char **, const char *, int); - #endif - -+#if !defined(HAVE_STRLCPY) -+size_t strlcpy(char *, const char *, size_t); -+#endif -+ - /* - * Filemon is a kernel module which snoops certain syscalls. - * -@@ -769,7 +773,8 @@ - } - if (gn != NULL) - Global_Set(".ERROR_TARGET", GNode_Path(gn)); -- getcwd(cwd, sizeof cwd); -+ if (getcwd(cwd, sizeof cwd) == NULL) -+ err(1, "Could not get current working directory"); - Global_Set(".ERROR_CWD", cwd); - if (pbm->meta_fname[0] != '\0') { - Global_Set(".ERROR_META_FILE", pbm->meta_fname); |