aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/nss-getcwd-nonnull.patch
blob: 37c1b1c539b37221e2aff9d0cd8877ca969fa363 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Disable -Werror=nonnull on getcwd(0, 4096) because GCC incorrectly warns that
the second argument should be NULL with recent glibc.  See:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96832
https://sourceware.org/bugzilla/show_bug.cgi?id=26545

diff --git a/nss/coreconf/nsinstall/nsinstall.c b/nss/coreconf/nsinstall/nsinstall.c
--- a/nss/coreconf/nsinstall/nsinstall.c
+++ b/nss/coreconf/nsinstall/nsinstall.c
@@ -236,14 +236,20 @@ main(int argc, char **argv)
 	return 0;
 
     if (!cwd) {
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wnonnull"
 	cwd = GETCWD(0, PATH_MAX);
+#pragma GCC diagnostic pop
 	if (!cwd)
 	    fail("could not get CWD");
     }
 
     /* make sure we can get into todir. */
     xchdir(todir);
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wnonnull"
     todir = GETCWD(0, PATH_MAX);
+#pragma GCC diagnostic pop
     if (!todir)
 	fail("could not get CWD in todir");
     tdlen = strlen(todir);
2020-11-02gnu: mgba: Update to 0.8.4....Nicolas Goaziou 2020-10-03gnu: mame: Update to 0.225....Tobias Geerinckx-Rice 2020-09-29gnu: ppsspp: Update to 1.10.3....Leo Prikler 2020-09-28gnu: Add missing module....Nicolas Goaziou 2020-09-28gnu: scummvm: Update to 2.2.0....Nicolas Goaziou 2020-08-28gnu: mame: Update to 0.224....Tobias Geerinckx-Rice 2020-08-22gnu: sameboy: Update to 0.13.6....Jakub Kądziołka 2020-08-17gnu: mame: Update to 0.223....Nicolas Goaziou 2020-08-13gnu: Add qtmips....Efraim Flashner 2020-08-06gnu: sameboy: Update to 0.13.5....Jakub Kądziołka 2020-08-06gnu: mgba: Update to 0.8.3....Nicolas Goaziou 2020-08-05gnu: sameboy: Update to 0.13.4....Jakub Kądziołka 2020-07-14gnu: ppsspp: Name git checkouts....Tobias Geerinckx-Rice 2020-07-12gnu: Remove ".git" from "https://github/…/….git"....Ludovic Courtès 2020-07-01gnu: ppsspp: Unbundle more sources....Leo Prikler