mirror of
https://github.com/NixOS/nix.git
synced 2025-11-23 10:49:36 +01:00
Before the change `nix` was stripping warning flags
reported by `gcc-14` too eagerly:
$ nix build -f. texinfo4
error: builder for '/nix/store/i9948l91s3df44ip5jlpp6imbrcs646x-texinfo-4.13a.drv' failed with exit code 2;
last 25 log lines:
> 1495 | info_tag (mbi_iterator_t iter, int handle, size_t *plen)
> | ~~~~~~~~^~~~
> window.c:1887:39: error: passing argument 4 of 'printed_representation' from incompatible pointer type []
> 1887 | &replen);
> | ^~~~~~~
> | |
> | int *
After the change the compiler flag remains:
$ ~/patched.nix build -f. texinfo4
error: builder for '/nix/store/i9948l91s3df44ip5jlpp6imbrcs646x-texinfo-4.13a.drv' failed with exit code 2;
last 25 log lines:
> 1495 | info_tag (mbi_iterator_t iter, int handle, size_t *plen)
> | ~~~~~~~~^~~~
> window.c:1887:39: error: passing argument 4 of 'printed_representation' from incompatible pointer type [-Wincompatible-pointer-types]
> 1887 | &replen);
> | ^~~~~~~
> | |
> | int *
Note the difference in flag rendering around the warning.
https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda has a
good sumamry of why it happens. Befomre the change `nix` was handling
just one form or URL separator:
$ printf '\e]8;;http://example.com\e\\This is a link\e]8;;\e\\\n'
Now it also handled another for (used by gcc-14`):
printf '\e]8;;http://example.com\aThis is a link\e]8;;\a\n'
While at it fixed accumulation of trailing escape `\e\\` symbol.
|
||
|---|---|---|
| .. | ||
| data/git | ||
| .version | ||
| args.cc | ||
| canon-path.cc | ||
| checked-arithmetic.cc | ||
| chunked-vector.cc | ||
| closure.cc | ||
| compression.cc | ||
| config.cc | ||
| executable-path.cc | ||
| file-content-address.cc | ||
| file-system.cc | ||
| git.cc | ||
| hash.cc | ||
| hilite.cc | ||
| json-utils.cc | ||
| logging.cc | ||
| lru-cache.cc | ||
| meson.build | ||
| monitorfdhup.cc | ||
| nix-meson-build-support | ||
| nix_api_util.cc | ||
| package.nix | ||
| pool.cc | ||
| position.cc | ||
| processes.cc | ||
| references.cc | ||
| spawn.cc | ||
| strings.cc | ||
| suggestions.cc | ||
| terminal.cc | ||
| url.cc | ||
| util.cc | ||
| xml-writer.cc | ||