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); t'></td></tr></table> <table class='tabs'><tr><td> <a href='/guix/about/'>about</a><a href='/guix/'>summary</a><a href='/guix/refs/?id=d130524d70fa5485bb697671a8e9db11650f6cfc'>refs</a><a class='active' href='/guix/log/etc/openrc'>log</a><a href='/guix/tree/etc/openrc?id=d130524d70fa5485bb697671a8e9db11650f6cfc'>tree</a><a href='/guix/commit/etc/openrc?id=d130524d70fa5485bb697671a8e9db11650f6cfc'>commit</a><a href='/guix/diff/etc/openrc?id=d130524d70fa5485bb697671a8e9db11650f6cfc'>diff</a></td><td class='form'><form class='right' method='get' action='/guix/log/etc/openrc'> <input type='hidden' name='id' value='d130524d70fa5485bb697671a8e9db11650f6cfc'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/guix/log/?id=d130524d70fa5485bb697671a8e9db11650f6cfc'>root</a>/<a href='/guix/log/etc?id=d130524d70fa5485bb697671a8e9db11650f6cfc'>etc</a>/<a href='/guix/log/etc/openrc?id=d130524d70fa5485bb697671a8e9db11650f6cfc'>openrc</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/guix/log/etc/openrc?id=d130524d70fa5485bb697671a8e9db11650f6cfc&showmsg=1'>Expand</a>)</th><th class='left'>Author</th></tr>