aboutsummaryrefslogtreecommitdiff
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);
rinckx-Rice 2023-06-14.guix-authorizations: Remove Lars-Dominik Braun’s professional key....Lars-Dominik Braun 2023-05-15.guix-authorizations: Authorize Jorge Gomez....Maxim Cournoyer 2023-05-11.guix-authorizations: Authorize Josselin Poiret....Maxim Cournoyer 2023-05-11.guix-authorizations: Authorize Simon Tournier....Maxim Cournoyer 2023-03-24.guix-authorizations: Remove Paul Garlick due to inactivity....Leo Famulari 2023-03-24.guix-authorizations: Remove Jakub Kądziołka due to inactivity....Leo Famulari 2023-03-24.guix-authorizations: Remove Chris Marusich due to inactivity....Leo Famulari 2023-03-24.guix-authorizations: Remove Brice Waegeneire due to inactivity....Leo Famulari 2023-03-24.guix-authorizations: Remove Alex Kost due to inactivity....Leo Famulari 2022-12-11.guix-authorizations: Authorise John Kehayias....Tobias Geerinckx-Rice 2022-11-08authorizations: Remove old key for "davexunit"....David Thompson 2022-08-11.guix-authorizations: Authorize Andrew Tropin's subkey instead....Tobias Geerinckx-Rice 2022-08-05.git-authorizations: Authorize Andrew Tropin....Efraim Flashner